|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl2.internal.Introspector
org.apache.commons.jexl2.introspection.UberspectImpl
public class UberspectImpl
Implementation of Uberspect to provide the default introspective functionality of JEXL.
This is the class to derive to customize introspection.
Nested Class Summary | |
---|---|
static class |
UberspectImpl.FieldPropertyGet
A JexlPropertyGet for public fields. |
static class |
UberspectImpl.FieldPropertySet
A JexlPropertySet for public fields. |
Field Summary | |
---|---|
static java.lang.Object |
TRY_FAILED
Publicly exposed special failure object returned by tryInvoke. |
Fields inherited from class org.apache.commons.jexl2.internal.Introspector |
---|
rlog |
Constructor Summary | |
---|---|
UberspectImpl(org.apache.commons.logging.Log runtimeLogger)
Creates a new UberspectImpl. |
Method Summary | |
---|---|
java.lang.reflect.Constructor<?> |
getConstructor(java.lang.Object ctorHandle,
java.lang.Object[] args,
JexlInfo info)
Returns a class constructor. |
java.lang.reflect.Field |
getField(java.lang.Object obj,
java.lang.String name,
JexlInfo info)
Returns a class field. |
java.util.Iterator<?> |
getIterator(java.lang.Object obj,
JexlInfo info)
Gets an iterator from an object. |
JexlMethod |
getMethod(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args,
JexlInfo info)
Returns a JexlMethod. |
JexlPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.Object identifier,
JexlInfo info)
Property getter. |
JexlPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.Object identifier,
java.lang.Object arg,
JexlInfo info)
Property setter. |
Methods inherited from class org.apache.commons.jexl2.internal.Introspector |
---|
base, getConstructor, getField, getFieldNames, getGetExecutor, getMethod, getMethod, getMethodExecutor, getMethodNames, getSetExecutor, setClassLoader, toInteger, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jexl2.introspection.Uberspect |
---|
setClassLoader |
Field Detail |
---|
public static final java.lang.Object TRY_FAILED
Constructor Detail |
---|
public UberspectImpl(org.apache.commons.logging.Log runtimeLogger)
runtimeLogger
- the logger used for all logging needsMethod Detail |
---|
public java.util.Iterator<?> getIterator(java.lang.Object obj, JexlInfo info)
getIterator
in interface Uberspect
obj
- to get the iterator forinfo
- contextual information
public java.lang.reflect.Field getField(java.lang.Object obj, java.lang.String name, JexlInfo info)
obj
- the objectname
- the field nameinfo
- debug info
Field
.public java.lang.reflect.Constructor<?> getConstructor(java.lang.Object ctorHandle, java.lang.Object[] args, JexlInfo info)
getConstructor
in interface Uberspect
ctorHandle
- a class or class nameargs
- constructor argumentsinfo
- contextual information
Constructor
public JexlMethod getMethod(java.lang.Object obj, java.lang.String method, java.lang.Object[] args, JexlInfo info)
getMethod
in interface Uberspect
obj
- the objectmethod
- the method nameargs
- method argumentsinfo
- contextual information
JexlMethod
public JexlPropertyGet getPropertyGet(java.lang.Object obj, java.lang.Object identifier, JexlInfo info)
Returns JexlPropertyGet appropos for ${bar.woogie}.
getPropertyGet
in interface Uberspect
obj
- the object to get the property fromidentifier
- property nameinfo
- contextual information
JexlPropertyGet
public JexlPropertySet getPropertySet(java.lang.Object obj, java.lang.Object identifier, java.lang.Object arg, JexlInfo info)
returns JelPropertySet appropos for ${foo.bar = "geir"}
.
getPropertySet
in interface Uberspect
obj
- the object to get the property from.identifier
- property namearg
- value to setinfo
- contextual information
JexlPropertySet
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |