Package org.kohsuke.stapler.lang.util
Class FieldRefFilter
- java.lang.Object
-
- org.kohsuke.stapler.lang.AnnotatedRef
-
- org.kohsuke.stapler.lang.FieldRef
-
- org.kohsuke.stapler.lang.util.FieldRefFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kohsuke.stapler.lang.FieldRef
FieldRef.Filter
-
-
Constructor Summary
Constructors Constructor Description FieldRefFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
get(Object instance)
Obtains the value of the field of the instance.<T extends Annotation>
TgetAnnotation(Class<T> type)
protected abstract FieldRef
getBase()
String
getName()
Name of the method.String
getQualifiedName()
Gets a fully qualified name of this field that includes the declaring type.boolean
hasAnnotation(Class<? extends Annotation> type)
boolean
isRoutable()
Returns true if this method is a 'public' method that should be used for routing requests.boolean
isStatic()
Whether the field is static.static FieldRef
wrap(Field f)
-
Methods inherited from class org.kohsuke.stapler.lang.FieldRef
getReturnType, getSignature
-
-
-
-
Method Detail
-
getBase
protected abstract FieldRef getBase()
-
getName
public String getName()
Description copied from class:FieldRef
Name of the method.- Specified by:
getName
in classFieldRef
- See Also:
Field.getName()
-
get
public Object get(Object instance) throws IllegalAccessException
Description copied from class:FieldRef
Obtains the value of the field of the instance.- Specified by:
get
in classFieldRef
- Throws:
IllegalAccessException
-
isStatic
public boolean isStatic()
Description copied from class:FieldRef
Whether the field is static.
-
getQualifiedName
public String getQualifiedName()
Description copied from class:FieldRef
Gets a fully qualified name of this field that includes the declaring type.- Specified by:
getQualifiedName
in classFieldRef
-
isRoutable
public boolean isRoutable()
Description copied from class:FieldRef
Returns true if this method is a 'public' method that should be used for routing requests.- Overrides:
isRoutable
in classFieldRef
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> type)
- Specified by:
getAnnotation
in classAnnotatedRef
-
hasAnnotation
public boolean hasAnnotation(Class<? extends Annotation> type)
- Overrides:
hasAnnotation
in classAnnotatedRef
-
-