public class PojoPropertyAccessorGetField extends AbstractPojoPropertyAccessorField implements PojoPropertyAccessorNonArg
Constructor and Description |
---|
PojoPropertyAccessorGetField(PojoDescriptor<?> descriptor,
PojoDescriptorDependencies dependencies,
Field field)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
PojoPropertyAccessorNonArgMode |
getMode()
This method gets the mode of this accessor.
|
Object |
invoke(Object pojoInstance)
This method invokes the according property-method of
pojoInstance with the given arguments. |
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getField, getModifiers, getReturnClass, getReturnType
getName, getPropertyType
getPropertyClass, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessibleObject, getAccessibleObjectName, getDeclaringClass, getModifiers, getPropertyClass, getPropertyType, getReturnClass, getReturnType
getName
public PojoPropertyAccessorGetField(PojoDescriptor<?> descriptor, PojoDescriptorDependencies dependencies, Field field)
descriptor
- is the descriptor this accessor is intended for.dependencies
- are the PojoDescriptorDependencies
to use.field
- is the field
to access.public Object invoke(Object pojoInstance)
PojoPropertyAccessorNonArg
pojoInstance
with the given arguments. invoke
in interface PojoPropertyAccessorNonArg
pojoInstance
- is the instance of the POJO where to access the property. Has to be an instance of the
type
from where this accessor was
created for.null
if void (e.g. initialize method). For a regular
getter this will be the value of the property.public PojoPropertyAccessorNonArgMode getMode()
PojoPropertyAccessor
getMode
in interface PojoPropertyAccessor
getMode
in interface PojoPropertyAccessorNonArg
Copyright © 2001–2016 mmm-Team. All rights reserved.