Package org.kohsuke.stapler.lang
Class FieldRef
- java.lang.Object
-
- org.kohsuke.stapler.lang.AnnotatedRef
-
- org.kohsuke.stapler.lang.FieldRef
-
- Direct Known Subclasses:
FieldRefFilter
public abstract class FieldRef extends AnnotatedRef
Fields ofKlass
.- Author:
- Kohsuke Kawaguchi
- See Also:
Klass.getDeclaredFields()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
FieldRef.Filter
-
Constructor Summary
Constructors Constructor Description FieldRef()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
get(Object instance)
Obtains the value of the field of the instance.abstract String
getName()
Name of the method.abstract String
getQualifiedName()
Gets a fully qualified name of this field that includes the declaring type.abstract Class<?>
getReturnType()
abstract String
getSignature()
Gets the signature for this for use in listsboolean
isRoutable()
Returns true if this method is a 'public' method that should be used for routing requests.abstract boolean
isStatic()
Whether the field is static.static FieldRef
wrap(Field f)
-
Methods inherited from class org.kohsuke.stapler.lang.AnnotatedRef
getAnnotation, hasAnnotation
-
-
-
-
Method Detail
-
getName
public abstract String getName()
Name of the method.- See Also:
Field.getName()
-
isStatic
public abstract boolean isStatic()
Whether the field is static.
-
get
public abstract Object get(Object instance) throws IllegalAccessException
Obtains the value of the field of the instance.- Throws:
IllegalAccessException
-
getQualifiedName
public abstract String getQualifiedName()
Gets a fully qualified name of this field that includes the declaring type.
-
getSignature
public abstract String getSignature()
Gets the signature for this for use in lists- See Also:
Function.getSignature()
-
getReturnType
public abstract Class<?> getReturnType()
-
isRoutable
public boolean isRoutable()
Returns true if this method is a 'public' method that should be used for routing requests.
-
-