public interface PojoField extends PojoElement, Parameterizable
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.Object instance)
This method gets the value of the field.
|
boolean |
hasGetter()
Returns true if this field has a getter method.
|
boolean |
hasSetter()
Returns true if this field has a setter method.
|
java.lang.Object |
invokeGetter(java.lang.Object instance)
This method will invoke the getter method.
|
void |
invokeSetter(java.lang.Object instance,
java.lang.Object value)
This method will invoke the setter method.
|
boolean |
isArray() |
boolean |
isFinal() |
boolean |
isPrimitive() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
boolean |
isTransient() |
boolean |
isVolatile() |
void |
set(java.lang.Object instance,
java.lang.Object value)
This method sets the value of the field.
|
java.lang.String |
toString(java.lang.Object instance)
Returns properly formatted field=value string from instance.
|
getNamegetAnnotation, getAnnotationsgetParameterTypes, getType, isParameterizedjava.lang.Object get(java.lang.Object instance)
instance - The instance to extract the value out of.void set(java.lang.Object instance,
java.lang.Object value)
instance - The instance to set the value on.value - The value to set it to.boolean hasGetter()
java.lang.Object invokeGetter(java.lang.Object instance)
instance - The instance of the class to invoke the getter on.boolean hasSetter()
void invokeSetter(java.lang.Object instance,
java.lang.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 isPrivate()
boolean isProtected()
boolean isPublic()
boolean isTransient()
boolean isVolatile()
boolean isArray()
boolean isSynthetic()
java.lang.String toString(java.lang.Object instance)
instance - The instance to pull the field value off of.Copyright © 2010-2015. All Rights Reserved.