C
- class containing the fieldT
- class of fieldpublic abstract class RowField<C,T> extends SormulaField<C,T>
Modifier | Constructor and Description |
---|---|
|
RowField(java.lang.reflect.Field field)
Constructs for a field.
|
protected |
RowField(java.lang.reflect.Field field,
boolean initGettersAndSetters)
Constructs and optionally initializes getter/setter method references.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
get(C object)
Gets value from get method of an object using reflection.
|
static <C,T> RowField<C,T> |
newInstance(FieldAccessType fieldAccessType,
java.lang.reflect.Field field)
Factory method to create concrete
RowField subclass instance for a field. |
abstract void |
set(C object,
T value)
Sets value on object with set method using reflection.
|
getCanonicalGetMethodName, getCanonicalSetMethodName, getField, invokeGetMethod, invokeSetMethod, isArray, isBooleanMethod, isClass, isCollection, isMap, isScalar
public RowField(java.lang.reflect.Field field) throws ReflectException
field
- java reflection Field that corresponds to class variableReflectException
- if errorprotected RowField(java.lang.reflect.Field field, boolean initGettersAndSetters) throws ReflectException
field
- java reflection Field that corresponds to class variableinitGettersAndSetters
- true to get references to getter and setter methodsReflectException
- if errorpublic static <C,T> RowField<C,T> newInstance(FieldAccessType fieldAccessType, java.lang.reflect.Field field) throws ReflectException
RowField
subclass instance for a field.fieldAccessType
- direct or method accessfield
- field to accessMethodAccessField
or DirectAccessField
ReflectException
- if errorpublic abstract T get(C object) throws ReflectException
get
in class SormulaField<C,T>
object
- instance of field to getReflectException
- if errorpublic abstract void set(C object, T value) throws ReflectException
set
in class SormulaField<C,T>
object
- instance of field to set new valuevalue
- new value of field instanceReflectException
- if error