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 SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionfinal JexlPropertyGetgetPropertyGet(JexlUberspect uber, Object obj, Object identifier) Gets a property getter.final JexlPropertySetgetPropertySet(JexlUberspect uber, Object obj, Object identifier, Object arg) Gets a property setter.static JexlUberspect.JexlResolverReturns 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- 
PROPERTYSeeks methods named get{P,p}property and is{P,p}property.
- 
MAPSeeks map methods get/put.
- 
LISTSeeks list methods get/set.
- 
DUCKSeeks any get/{set,put} method (quacking like a list or a map).
- 
FIELDSeeks public instance members.
- 
CONTAINERSeeks a getContainer(property) and setContainer(property, value) as inx.container.property.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getPropertyGetDescription copied from interface:JexlUberspect.PropertyResolverGets a property getter.- Specified by:
- getPropertyGetin interface- JexlUberspect.PropertyResolver
- Parameters:
- uber- the uberspect
- obj- the object
- identifier- the property identifier
- Returns:
- the property getter or null
 
- 
getPropertySetpublic final JexlPropertySet getPropertySet(JexlUberspect uber, Object obj, Object identifier, Object arg) Description copied from interface:JexlUberspect.PropertyResolverGets a property setter.- Specified by:
- getPropertySetin interface- JexlUberspect.PropertyResolver
- Parameters:
- uber- the uberspect
- obj- the object
- identifier- the property identifier
- arg- the property value
- Returns:
- the property setter or null
 
 
-