| Modifier and Type | Field and Description |
|---|---|
| private static final Method | ARRAY_GET
The java.lang.reflect.Array.get method used as an active marker in ListGet. |
| private static final Method | LIST_GET
The java.util.obj.get method used as an active marker in ListGet. |
| private final Integer | property
The property. |
| Access | Constructor and Description |
|---|---|
| public | ListGetExecutor(Introspector
the introspector is, Class<?> the class to introspect clazz, Integer the key to use in obj.get(key) key)Creates an instance checking for the List interface or Array capability. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Method | |
| public Object | Returns: obj.get(key)the List/array. obj)Implements abstract org. |
| public Object | getTargetProperty()
Overrides org. |
| public Object | tryExecute(final Object
The object to get the property from. obj, Object The property to get from the object. key)Overrides org. |
| ARRAY_GET | back to summary |
|---|---|
| private static final Method ARRAY_GET The java.lang.reflect.Array.get method used as an active marker in ListGet. | |
| LIST_GET | back to summary |
|---|---|
| private static final Method LIST_GET The java.util.obj.get method used as an active marker in ListGet. | |
| property | back to summary |
|---|---|
| private final Integer property The property. | |
| ListGetExecutor | back to summary |
|---|---|
| public ListGetExecutor(Introspector is, Class<?> clazz, Integer key) Creates an instance checking for the List interface or Array capability.
| |
| discover | back to summary |
|---|---|
| pack-priv static Method discover(Class<?> clazz) Finds the method to perform the get on a obj of array. | |
| execute | back to summary |
|---|---|
| public Object execute(final Object obj) Implements abstract org. Get the property from the obj or array. | |
| 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(final Object obj, Object key) Overrides org. Doc from org. Tries to reuse this executor, checking that it is compatible with the actual set of arguments. Compatibility means that:
| |