public interface PojoField extends PojoElement, Parameterizable, Accessible
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object instance)
This method gets the value of the field.
|
PojoClass |
getDeclaringPojoClass() |
PojoMethod |
getGetter()
Returns getter PojoMethod or null if none are set.
|
PojoMethod |
getSetter()
Returns setter PojoMethod or null if none are set.
|
boolean |
hasGetter()
Returns true if this field has a getter method.
|
boolean |
hasSetter()
Returns true if this field has a setter method.
|
Object |
invokeGetter(Object instance)
This method will invoke the getter method.
|
void |
invokeSetter(Object instance,
Object value)
This method will invoke the setter method.
|
boolean |
isArray() |
boolean |
isFinal() |
boolean |
isPrimitive() |
boolean |
isStatic() |
boolean |
isSynthetic() |
boolean |
isTransient() |
boolean |
isVolatile() |
void |
set(Object instance,
Object value)
This method sets the value of the field.
|
String |
toString(Object instance)
Returns properly formatted field=value string from instance.
|
getNamegetAnnotation, getAnnotationsgetParameterTypes, getType, isParameterizedisPackagePrivate, isPrivate, isProtected, isPublicObject get(Object instance)
instance - The instance to extract the value out of.void set(Object instance, Object value)
instance - The instance to set the value on.value - The value to set it to.boolean hasGetter()
PojoMethod getGetter()
Object invokeGetter(Object instance)
instance - The instance of the class to invoke the getter on.boolean hasSetter()
PojoMethod getSetter()
PojoClass getDeclaringPojoClass()
void invokeSetter(Object instance, Object value)
instance - The instance of the class to invoke the setter on.value - The value to set the field to.boolean isPrimitive()
boolean isFinal()
boolean isStatic()
boolean isTransient()
boolean isVolatile()
boolean isArray()
boolean isSynthetic()
Copyright © 2010–2021. All rights reserved.