public class Accessor
extends java.lang.Object
BeansAccess| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Field |
field
Field to access
|
protected java.lang.String |
fieldName |
protected java.lang.reflect.Type |
genericType
Filed Type using JDK 5+ generics if available
|
protected java.lang.reflect.Method |
getter
getter Methods if available
|
protected int |
index
Filed index in object
|
protected java.lang.reflect.Method |
setter
Setter Methods if available
|
protected java.lang.Class<?> |
type
Filed Class
|
| Constructor and Description |
|---|
Accessor(java.lang.Class<?> c,
java.lang.reflect.Field field,
FieldFilter filter)
build accessor for a field
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Type |
getGenericType()
return generics field Type.
|
int |
getIndex()
getter for index
|
java.lang.String |
getName()
return the field name
|
java.lang.Class<?> |
getType()
return field Class
|
boolean |
isEnum()
is the field is an enum field
|
boolean |
isPublic()
is the field access using Field access type
|
boolean |
isReadable() |
boolean |
isUsable() |
boolean |
isWritable() |
protected java.lang.reflect.Field field
protected java.lang.reflect.Method setter
protected java.lang.reflect.Method getter
protected int index
protected java.lang.Class<?> type
protected java.lang.reflect.Type genericType
protected java.lang.String fieldName
public Accessor(java.lang.Class<?> c,
java.lang.reflect.Field field,
FieldFilter filter)
c - the handled classfield - the field to accesspublic int getIndex()
public boolean isPublic()
public boolean isEnum()
public java.lang.String getName()
public java.lang.Class<?> getType()
public java.lang.reflect.Type getGenericType()
public boolean isUsable()
public boolean isReadable()
public boolean isWritable()