public abstract class AbstractPojoPropertyAccessorMethod extends AbstractPojoPropertyAccessorBase
PojoPropertyAccessor
interface used to access a Method.| Modifier and Type | Field and Description |
|---|---|
private Method |
method |
private GenericType<?> |
returnType |
| Constructor and Description |
|---|
AbstractPojoPropertyAccessorMethod(String propertyName,
Type propertyType,
PojoDescriptor<?> descriptor,
PojoDescriptorDependencies dependencies,
Method method)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AccessibleObject |
getAccessibleObject()
This method gets the
accessible object used to access (read/write) this property. |
String |
getAccessibleObjectName()
This method gets the name of the
accessible object. |
Class<?> |
getDeclaringClass()
This method gets the class reflecting the type that declared this accessor.
|
protected Method |
getMethod() |
int |
getModifiers()
This method gets the
modifiers of the accessible
object. |
Class<?> |
getReturnClass()
This method gets the
Class of the object returned when this accessor is invoked. |
GenericType<?> |
getReturnType()
This method gets the
GenericType of the object returned when this accessor is invoked. |
getName, getPropertyTypegetPropertyClass, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetModeprivate final Method method
private final GenericType<?> returnType
public AbstractPojoPropertyAccessorMethod(String propertyName, Type propertyType, PojoDescriptor<?> descriptor, PojoDescriptorDependencies dependencies, Method method)
propertyName - is the name of the property.propertyType - is the generic type of the property.descriptor - is the descriptor this accessor is intended for.dependencies - are the PojoDescriptorDependencies to use.method - is the method to access.protected Method getMethod()
getAccessibleObject()public int getModifiers()
PojoPropertyAccessormodifiers of the accessible
object.Modifier,
Field.getModifiers(),
Method.getModifiers()public AccessibleObject getAccessibleObject()
PojoPropertyAccessoraccessible object used to access (read/write) this property.accessible object used to access this property.PropertyDescriptor.getReadMethod(),
Method,
Constructor,
Fieldpublic String getAccessibleObjectName()
PojoPropertyAccessoraccessible object.accessible object.Method.getName(),
Constructor.getName(),
Field.getName()public Class<?> getDeclaringClass()
PojoPropertyAccessorfield or method of this
accessor is inherited from and is NOT overridden. Object.public GenericType<?> getReturnType()
PojoPropertyAccessorGenericType of the object returned when this accessor is invoked.Method.getGenericReturnType(),
Field.getGenericType()public Class<?> getReturnClass()
PojoPropertyAccessorClass of the object returned when this accessor is invoked. PojoPropertyAccessor.getReturnType().getRetrievalClass()Method.getReturnType(),
Field.getType()Copyright © 2001–2016 mmm-Team. All rights reserved.