C
- class containing the fieldT
- class of field@Deprecated
public class SormulaField<C,T>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
|
SormulaField(java.lang.reflect.Field field)
Deprecated.
Constructs for a field.
|
protected |
SormulaField(java.lang.reflect.Field field,
boolean initGettersAndSetters)
Deprecated.
Constructs for a field and optionally initializes references to getter and setter methods.
|
Modifier and Type | Method and Description |
---|---|
T |
get(C object)
Deprecated.
Invokes
invokeGetMethod(Object) . |
java.lang.String |
getCanonicalGetMethodName()
Deprecated.
|
java.lang.String |
getCanonicalSetMethodName()
Deprecated.
|
java.lang.reflect.Field |
getField()
Deprecated.
Gets field supplied in constructor.
|
T |
invokeGetMethod(C object)
Deprecated.
|
void |
invokeSetMethod(C object,
T value)
Deprecated.
|
boolean |
isArray()
Deprecated.
Gets field array type.
|
boolean |
isBooleanMethod()
Deprecated.
Reports boolean return type of field.
|
boolean |
isClass(java.lang.Class<?> c)
Deprecated.
Tests if field is instance of class.
|
boolean |
isCollection()
Deprecated.
Gets field
Collection inheritance. |
boolean |
isMap()
Deprecated.
Gets field
Map inheritance. |
boolean |
isScalar()
Deprecated.
Reports if field is scalar.
|
void |
set(C object,
T value)
Deprecated.
Invokes
invokeSetMethod(Object, Object) . |
public SormulaField(java.lang.reflect.Field field) throws ReflectException
field
- java reflection Field that corresponds to class variableReflectException
- if errorprotected SormulaField(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 java.lang.reflect.Field getField()
public boolean isArray()
public boolean isCollection()
Collection
inheritance.collection
public boolean isMap()
Map
inheritance.Map
public boolean isBooleanMethod()
public T get(C object) throws ReflectException
object
- instance of field to getReflectException
- if errorpublic void set(C object, T value) throws ReflectException
object
- instance of field to set new valuevalue
- new value of field instanceReflectException
- if error@Deprecated public T invokeGetMethod(C object) throws ReflectException
object
- object to invoke get method uponReflectException
- if error@Deprecated public void invokeSetMethod(C object, T value) throws ReflectException
object
- object to invoke set method uponvalue
- value to setReflectException
- if errorpublic boolean isScalar()
Collection
and not a Map
isClass(Class)
public boolean isClass(java.lang.Class<?> c)
c
- class to testClass.isAssignableFrom(Class)
@Deprecated public java.lang.String getCanonicalGetMethodName()
@Deprecated public java.lang.String getCanonicalSetMethodName()