| Modifier and Type | Field and Description |
|---|---|
protected Field |
field
A filed access.
|
protected Method |
method
A method access.
|
protected PropertyDescriptor |
property
A bean access.
|
| Constructor and Description |
|---|
AccessImpl(Field field)
Basic filed access constructor.
|
AccessImpl(Method method)
Basic method access constructor.
|
AccessImpl(PropertyDescriptor property)
Basic bean access constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?>[] |
accepted(Object target,
String name,
Object... args)
Get the accepted type(s) for a feature assignment or arguments.
|
Class<?> |
expected(Object target,
String name,
Object... args)
Get the expected type(s) for a feature.
|
Object |
get(Object target,
String name,
Object... args)
Get the feature value.
|
Annotation[] |
getAnnotations()
Get the annotation information of a given access.
|
protected Annotation[] |
getMethodAnnotations(Method method)
Get annotation for methods.
|
boolean |
hasFeature()
Check if access has feature associated or null.
|
protected Object |
prepare(Object object)
Prepare argument for set.
|
protected Object[] |
prepare(Object[] args)
Prepare an array of arguments.
|
void |
set(Object target,
String name,
Object... args)
Set the value to a given feature.
|
String |
toString() |
boolean |
valid(Object target,
String name,
Object... args)
Check if the given arguments are compatible with the feature named.
|
protected Field field
protected PropertyDescriptor property
protected Method method
public AccessImpl(Field field)
field - The field.public AccessImpl(PropertyDescriptor property)
property - The bean property.public AccessImpl(Method method)
method - The method.public void set(Object target, String name, Object... args) throws Exception
IAccessprotected Object[] prepare(Object[] args) throws PluginException
args - The arguments.PluginException - On preparation errors.protected Object prepare(Object object) throws PluginException
object - The argument object.PluginException - On preparation errors.protected Annotation[] getMethodAnnotations(Method method)
method - The write method.public Object get(Object target, String name, Object... args) throws Exception
IAccesspublic boolean valid(Object target, String name, Object... args)
IAccesspublic Class<?> expected(Object target, String name, Object... args)
IAccesspublic Class<?>[] accepted(Object target, String name, Object... args)
IAccesspublic boolean hasFeature()
IAccesshasFeature in interface IAccesspublic Annotation[] getAnnotations()
IAccessgetAnnotations in interface IAccessCopyright © 2016. All rights reserved.