| Modifier and Type | Field and Description |
|---|---|
| private static final Object[] | EMPTY_PARAMS
A static signature for method(). |
| private final String | property
The property. |
| Access | Constructor and Description |
|---|---|
| public | PropertyGetExecutor(Introspector
the introspector is, Class<?> the class to introspect clazz, String the property to get identifier)Creates an instance by attempting discovery of the get method. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Method | Returns: the method if found, null otherwisethe introspector is, final Class<?> the class to find the get method from clazz, String the property name to find property)Discovers the method for a |
| pack-priv static Method | Returns: The {get,is}{p,P}roperty method if one exists, null otherwise.the introspector is, String "is" or "get" for boolean or object which, Class<?> The class being examined. clazz, String The property being addressed. property)Base method for boolean & object property get. |
| public Object | execute(Object
The object to get the property from. o)Implements abstract org. |
| public Object | getTargetProperty()
Overrides org. |
| public Object | tryExecute(Object
The object to get the property from. o, Object The property to get from the object. identifier)Overrides org. |
| EMPTY_PARAMS | back to summary |
|---|---|
| private static final Object[] EMPTY_PARAMS A static signature for method(). | |
| property | back to summary |
|---|---|
| private final String property The property. | |
| PropertyGetExecutor | back to summary |
|---|---|
| public PropertyGetExecutor(Introspector is, Class<?> clazz, String identifier) Creates an instance by attempting discovery of the get method.
| |
| discover | back to summary |
|---|---|
| pack-priv static Method discover(Introspector is, final Class<?> clazz, String property) Discovers the method for a The method to be found should be named "get{P,p}property.
| |
| discoverGet | back to summary |
|---|---|
| pack-priv static Method discoverGet(Introspector is, String which, Class<?> clazz, String property) Base method for boolean & object property get.
| |
| execute | back to summary |
|---|---|
| public Object execute(Object o) throws IllegalAccessException, InvocationTargetException Implements abstract org. Doc from org. Gets the property value from an object.
| |
| getTargetProperty | back to summary |
|---|---|
| public Object getTargetProperty() Overrides org. Doc from org. Gets the property targeted by this executor. | |
| tryExecute | back to summary |
|---|---|
| public Object tryExecute(Object o, Object identifier) Overrides org. Doc from org. Tries to reuse this executor, checking that it is compatible with the actual set of arguments. Compatibility means that:
| |