Package | Description |
---|---|
org.sormula.reflect |
Classes for performing Java reflection operations.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
RowField.get(C object)
Gets value from get method of an object using reflection.
|
T |
MethodAccessField.get(C object)
Gets field value with row getter method using
Method.invoke(Object, Object...) . |
T |
DirectAccessField.get(C object)
Gets field value directly (non method access) using
Field.get(Object) . |
java.lang.Object[] |
FieldExtractor.getFieldValues(R row)
Gets the values of fields for a row.
|
static <C,T> RowField<C,T> |
RowField.newInstance(FieldAccessType fieldAccessType,
java.lang.reflect.Field field)
Factory method to create concrete
RowField subclass instance for a field. |
abstract void |
RowField.set(C object,
T value)
Sets value on object with set method using reflection.
|
void |
MethodAccessField.set(C object,
T value)
Sets field value with row setter method using
Method.invoke(Object, Object...) . |
void |
DirectAccessField.set(C object,
T value)
Sets field value directly (non method access) using
Field.set(Object, Object) . |
java.lang.String |
FieldExtractor.toString(R row)
Gets field names and values for a row in the form of
"field1=value1 field2=value2 field3=value3..."
Typically this method is used for debugging.
|
Constructor and Description |
---|
DirectAccessField(java.lang.reflect.Field field)
Constructs for a field.
|
FieldExtractor(AbstractWhereTranslator<R> whereTranslator)
Constructs for where translator columns.
|
FieldExtractor(RowTranslator<R> rowTranslator)
Constructs for all fields in row.
|
MethodAccessField(java.lang.reflect.Field field)
Constructs for a field.
|
RowField(java.lang.reflect.Field field)
Constructs for a field.
|