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