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, getPropertyType
getPropertyClass, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMode
private 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()
PojoPropertyAccessor
modifiers
of the accessible
object
.Modifier
,
Field.getModifiers()
,
Method.getModifiers()
public AccessibleObject getAccessibleObject()
PojoPropertyAccessor
accessible object
used to access (read/write) this property.accessible object
used to access this property.PropertyDescriptor.getReadMethod()
,
Method
,
Constructor
,
Field
public String getAccessibleObjectName()
PojoPropertyAccessor
accessible object
.accessible object
.Method.getName()
,
Constructor.getName()
,
Field.getName()
public Class<?> getDeclaringClass()
PojoPropertyAccessor
field or method
of this
accessor is inherited from and is NOT overridden. Object
.public GenericType<?> getReturnType()
PojoPropertyAccessor
GenericType
of the object returned when this accessor is invoked
.Method.getGenericReturnType()
,
Field.getGenericType()
public Class<?> getReturnClass()
PojoPropertyAccessor
Class
of the object returned when this accessor is invoked
. PojoPropertyAccessor.getReturnType()
.getRetrievalClass()
Method.getReturnType()
,
Field.getType()
Copyright © 2001–2016 mmm-Team. All rights reserved.