public class Accessor extends Object
BeansAccess
Modifier and Type | Field and Description |
---|---|
protected Field |
field
Field to access
|
protected String |
fieldName |
protected Type |
genericType
Filed Type using JDK 5+ generics if available
|
protected Method |
getter
getter Methods if available
|
protected int |
index
Filed index in object
|
protected Method |
setter
Setter Methods if available
|
protected Class<?> |
type
Filed Class
|
Constructor and Description |
---|
Accessor(Class<?> c,
Field field,
FieldFilter filter)
build accessor for a field
|
Modifier and Type | Method and Description |
---|---|
Type |
getGenericType()
return generics field Type.
|
int |
getIndex()
getter for index
|
String |
getName()
return the field name
|
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 Field field
protected Method setter
protected Method getter
protected int index
protected Class<?> type
protected Type genericType
protected String fieldName
public Accessor(Class<?> c, Field field, FieldFilter filter)
c
- the handled classfield
- the field to accesspublic int getIndex()
public boolean isPublic()
public boolean isEnum()
public String getName()
public Class<?> getType()
public Type getGenericType()
public boolean isUsable()
public boolean isReadable()
public boolean isWritable()
Copyright © 2017 Chemouni Uriel. All rights reserved.