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
FieldRef
filter as a convenience class.- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.stapler.lang.FieldRef
FieldRef.Filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObtains the value of the field of the instance.<T extends Annotation>
TgetAnnotation
(Class<T> type) protected abstract FieldRef
getBase()
getName()
Name of the method.Gets a fully qualified name of this field that includes the declaring type.boolean
hasAnnotation
(Class<? extends Annotation> type) boolean
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
Methods inherited from class org.kohsuke.stapler.lang.FieldRef
getReturnType, getSignature
-
Constructor Details
-
FieldRefFilter
public FieldRefFilter()
-
-
Method Details
-
getBase
-
getName
Description copied from class:FieldRef
Name of the method. -
get
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
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
-
wrap
-
getAnnotation
- Specified by:
getAnnotation
in classAnnotatedRef
-
hasAnnotation
- Overrides:
hasAnnotation
in classAnnotatedRef
-