|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JexlUberspect.JexlResolver>
org.apache.commons.jexl3.introspection.JexlUberspect.JexlResolver
public static enum JexlUberspect.JexlResolver
The various builtin property resolvers.
Each resolver discovers how to set/get a property with different techniques; seeking method names or field names, etc.
Enum Constant Summary | |
---|---|
CONTAINER
Seeks a getContainer(property) and setContainer(property, value) as in x.container.property . |
|
DUCK
Seeks any get/{set,put} method (quacking like a list or a map). |
|
FIELD
Seeks public instance members. |
|
LIST
Seeks list methods get/set. |
|
MAP
Seeks map methods get/put. |
|
PROPERTY
Seeks methods named get{P,p}property and is{P,p}property. |
Method Summary | |
---|---|
JexlPropertyGet |
getPropertyGet(JexlUberspect uber,
Object obj,
Object identifier)
Gets a property getter. |
JexlPropertySet |
getPropertySet(JexlUberspect uber,
Object obj,
Object identifier,
Object arg)
Gets a property setter. |
static JexlUberspect.JexlResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JexlUberspect.JexlResolver[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JexlUberspect.JexlResolver PROPERTY
public static final JexlUberspect.JexlResolver MAP
public static final JexlUberspect.JexlResolver LIST
public static final JexlUberspect.JexlResolver DUCK
public static final JexlUberspect.JexlResolver FIELD
public static final JexlUberspect.JexlResolver CONTAINER
x.container.property
.
Method Detail |
---|
public static JexlUberspect.JexlResolver[] values()
for (JexlUberspect.JexlResolver c : JexlUberspect.JexlResolver.values()) System.out.println(c);
public static JexlUberspect.JexlResolver valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic final JexlPropertyGet getPropertyGet(JexlUberspect uber, Object obj, Object identifier)
JexlUberspect.PropertyResolver
getPropertyGet
in interface JexlUberspect.PropertyResolver
uber
- the uberspectobj
- the objectidentifier
- the property identifier
public final JexlPropertySet getPropertySet(JexlUberspect uber, Object obj, Object identifier, Object arg)
JexlUberspect.PropertyResolver
getPropertySet
in interface JexlUberspect.PropertyResolver
uber
- the uberspectobj
- the objectidentifier
- the property identifierarg
- the property value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |