|
||||||||||
| 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
Deprecated. Do not use externally - will be made private in a later version |
static class |
UberspectImpl.FieldPropertySet
Deprecated. Do not use externally - will be made private in a later version |
static class |
UberspectImpl.IndexedContainer
A generic indexed property container, exposes get(key) and set(key, value) and solves method call dynamically based on arguments. |
| Field Summary | |
|---|---|
static 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 | |
|---|---|
Constructor<?> |
getConstructor(Object ctorHandle,
Object[] args,
JexlInfo info)
Deprecated. |
JexlMethod |
getConstructorMethod(Object ctorHandle,
Object[] args,
JexlInfo info)
Returns a class constructor wrapped in a JexlMethod. |
Field |
getField(Object obj,
String name,
JexlInfo info)
Returns a class field. |
protected JexlPropertyGet |
getIndexedGet(Object object,
String name)
Attempts to find an indexed-property getter in an object. |
Iterator<?> |
getIterator(Object obj,
JexlInfo info)
Gets an iterator from an object. |
JexlMethod |
getMethod(Object obj,
String method,
Object[] args,
JexlInfo info)
Returns a JexlMethod. |
JexlPropertyGet |
getPropertyGet(Object obj,
Object identifier,
JexlInfo info)
Property getter. |
JexlPropertySet |
getPropertySet(Object obj,
Object identifier,
Object arg,
JexlInfo info)
Property setter. |
void |
setLoader(ClassLoader cloader)
Resets this Uberspect class loader. |
| Methods inherited from class org.apache.commons.jexl2.internal.Introspector |
|---|
base, getClassByName, getConstructor, getField, getFieldNames, getGetExecutor, getMethod, getMethod, getMethodExecutor, getMethodNames, getMethods, 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 Object TRY_FAILED
| Constructor Detail |
|---|
public UberspectImpl(org.apache.commons.logging.Log runtimeLogger)
runtimeLogger - the logger used for all logging needs| Method Detail |
|---|
public void setLoader(ClassLoader cloader)
cloader - the class loader to use
public Iterator<?> getIterator(Object obj,
JexlInfo info)
getIterator in interface Uberspectobj - to get the iterator forinfo - contextual information
public JexlMethod getMethod(Object obj,
String method,
Object[] args,
JexlInfo info)
getMethod in interface Uberspectobj - the objectmethod - the method nameargs - method argumentsinfo - contextual information
JexlMethod
@Deprecated
public Constructor<?> getConstructor(Object ctorHandle,
Object[] args,
JexlInfo info)
getConstructor in interface UberspectctorHandle - a class or class nameargs - constructor argumentsinfo - contextual information
Constructor
public JexlMethod getConstructorMethod(Object ctorHandle,
Object[] args,
JexlInfo info)
getConstructorMethod in interface UberspectctorHandle - a class or class nameargs - constructor argumentsinfo - contextual information
Constructor
public JexlPropertyGet getPropertyGet(Object obj,
Object identifier,
JexlInfo info)
Returns JexlPropertyGet appropos for ${bar.woogie}.
getPropertyGet in interface Uberspectobj - the object to get the property fromidentifier - property nameinfo - contextual information
JexlPropertyGet
public JexlPropertySet getPropertySet(Object obj,
Object identifier,
Object arg,
JexlInfo info)
returns JelPropertySet appropos for ${foo.bar = "geir"}
.
getPropertySet in interface Uberspectobj - the object to get the property from.identifier - property namearg - value to setinfo - contextual information
JexlPropertySet.
public Field getField(Object obj,
String name,
JexlInfo info)
obj - the objectname - the field nameinfo - debug info
Field.
protected JexlPropertyGet getIndexedGet(Object object,
String name)
object - the objectname - the container name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||