| Modifier and Type | Field and Description |
|---|---|
| private static final Method | MAP_GET
The java.util.map.get method used as an active marker in MapGet. |
| private final Object | property
The property. |
| Access | Constructor and Description |
|---|---|
| public | MapGetExecutor(Introspector
the introspector is, Class<?> the class that might implement the map interface clazz, Object the key to use in map.get(key) key)Creates an instance checking for the Map interface. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Method | |
| public Object | Returns: map.get(property)the map. 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. |
| MAP_GET | back to summary |
|---|---|
| private static final Method MAP_GET The java.util.map.get method used as an active marker in MapGet. | |
| property | back to summary |
|---|---|
| private final Object property The property. | |
| MapGetExecutor | back to summary |
|---|---|
| public MapGetExecutor(Introspector is, Class<?> clazz, Object key) Creates an instance checking for the Map interface.
| |
| discover | back to summary |
|---|---|
| pack-priv static Method discover(Class<?> clazz) Finds the method to perform 'get' on a map. | |
| execute | back to summary |
|---|---|
| public Object execute(final Object obj) Implements abstract org. Get the property from the map. | |
| 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:
| |