C
- class containing the fieldT
- class of fieldpublic class DirectAccessField<C,T> extends RowField<C,T>
Column.fieldAccess()
or Row.fieldAccess()
is FieldAccessType.Direct
.Constructor and Description |
---|
DirectAccessField(java.lang.reflect.Field field)
Constructs for a field.
|
Modifier and Type | Method and Description |
---|---|
T |
get(C object)
Gets field value directly (non method access) using
Field.get(Object) . |
void |
set(C object,
T value)
Sets field value directly (non method access) using
Field.set(Object, Object) . |
getField, isArray, isBooleanMethod, isClass, isCollection, isMap, isScalar, newInstance
public DirectAccessField(java.lang.reflect.Field field) throws ReflectException
field
- java reflection Field that corresponds to class variableReflectException
- if errorpublic T get(C object) throws ReflectException
Field.get(Object)
.get
in class RowField<C,T>
object
- instance of field to getReflectException
- if errorpublic void set(C object, T value) throws ReflectException
Field.set(Object, Object)
.set
in class RowField<C,T>
object
- instance of field to set new valuevalue
- new value of field instanceReflectException
- if error