Enum JexlUberspect.JexlResolver
java.lang.Object
java.lang.Enum<JexlUberspect.JexlResolver>
org.apache.commons.jexl3.introspection.JexlUberspect.JexlResolver
- All Implemented Interfaces:
Serializable
,Comparable<JexlUberspect.JexlResolver>
,JexlUberspect.PropertyResolver
- Enclosing interface:
- JexlUberspect
public static enum JexlUberspect.JexlResolver
extends Enum<JexlUberspect.JexlResolver>
implements JexlUberspect.PropertyResolver
The various builtin property resolvers.
Each resolver discovers how to set/get a property with different techniques; seeking method names or field names, etc.
- Since:
- 3.0
-
Enum Constant Summary
Enum ConstantDescriptionSeeks a getContainer(property) and setContainer(property, value) as inx.container.property
.Seeks any get/{set,put} method (quacking like a list or a map).Seeks public instance members.Seeks list methods get/set.Seeks map methods get/put.Seeks methods named get{P,p}property and is{P,p}property. -
Method Summary
Modifier and TypeMethodDescriptionfinal JexlPropertyGet
getPropertyGet
(JexlUberspect uber, Object obj, Object identifier) Gets a property getter.final JexlPropertySet
getPropertySet
(JexlUberspect uber, Object obj, Object identifier, Object arg) Gets a property setter.static JexlUberspect.JexlResolver
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.
-
Enum Constant Details
-
PROPERTY
Seeks methods named get{P,p}property and is{P,p}property. -
MAP
Seeks map methods get/put. -
LIST
Seeks list methods get/set. -
DUCK
Seeks any get/{set,put} method (quacking like a list or a map). -
FIELD
Seeks public instance members. -
CONTAINER
Seeks a getContainer(property) and setContainer(property, value) as inx.container.property
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPropertyGet
Description copied from interface:JexlUberspect.PropertyResolver
Gets a property getter.- Specified by:
getPropertyGet
in interfaceJexlUberspect.PropertyResolver
- Parameters:
uber
- the uberspectobj
- the objectidentifier
- the property identifier- Returns:
- the property getter or null
-
getPropertySet
public final JexlPropertySet getPropertySet(JexlUberspect uber, Object obj, Object identifier, Object arg) Description copied from interface:JexlUberspect.PropertyResolver
Gets a property setter.- Specified by:
getPropertySet
in interfaceJexlUberspect.PropertyResolver
- Parameters:
uber
- the uberspectobj
- the objectidentifier
- the property identifierarg
- the property value- Returns:
- the property setter or null
-