Top Description Methods
org.apache.commons.jexl2.introspection

public Interface Uberspect

Known Direct Implementers
org.apache.commons.jexl2.introspection.UberspectImpl
Imports
java.lang.reflect.Constructor, java.util.Iterator, org.apache.commons.jexl2.JexlInfo

'Federated' introspection/reflection interface to allow the introspection behavior in JEXL to be customized.
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public Constructor<?>

Returns:

a Constructor
getConstructor
(Object
a class or class name
ctorHandle
,
Object[]
constructor arguments
args
,
JexlInfo
contextual information
info
)

Deprecated
Returns a class constructor.
public JexlMethod

Returns:

a Constructor
getConstructorMethod
(Object
a class or class name
ctorHandle
,
Object[]
constructor arguments
args
,
JexlInfo
contextual information
info
)

Returns a class constructor wrapped in a JexlMethod.

public Iterator<?>

Returns:

an iterator over obj
getIterator
(Object
to get the iterator for
obj
,
JexlInfo
contextual information
info
)

Gets an iterator from an object.

public JexlMethod

Returns:

a JexlMethod
getMethod
(Object
the object
obj
,
String
the method name
method
,
Object[]
method arguments
args
,
JexlInfo
contextual information
info
)

Returns a JexlMethod.

public JexlPropertyGet

Returns:

a JexlPropertyGet
getPropertyGet
(Object
the object to get the property from
obj
,
Object
property name
identifier
,
JexlInfo
contextual information
info
)

Property getter.

public JexlPropertySet

Returns:

a JexlPropertySet.
getPropertySet
(Object
the object to get the property from.
obj
,
Object
property name
identifier
,
Object
value to set
arg
,
JexlInfo
contextual information
info
)

Property setter.

public void
setClassLoader(ClassLoader
the class loader
loader
)

Sets the class loader to use when getting a constructor with a class name parameter.

Method Detail

getConstructorback to summary
public Constructor<?> getConstructor(Object ctorHandle, Object[] args, JexlInfo info)

Deprecated

Returns a class constructor.

Parameters
ctorHandle:Object

a class or class name

args:Object[]

constructor arguments

info:JexlInfo

contextual information

Returns:Constructor<?>

a Constructor

Annotations
@Deprecated
getConstructorMethodback to summary
public JexlMethod getConstructorMethod(Object ctorHandle, Object[] args, JexlInfo info)

Returns a class constructor wrapped in a JexlMethod.

Parameters
ctorHandle:Object

a class or class name

args:Object[]

constructor arguments

info:JexlInfo

contextual information

Returns:JexlMethod

a Constructor

Since
2.1
getIteratorback to summary
public Iterator<?> getIterator(Object obj, JexlInfo info)

Gets an iterator from an object.

Parameters
obj:Object

to get the iterator for

info:JexlInfo

contextual information

Returns:Iterator<?>

an iterator over obj

getMethodback to summary
public JexlMethod getMethod(Object obj, String method, Object[] args, JexlInfo info)

Returns a JexlMethod.

Parameters
obj:Object

the object

method:String

the method name

args:Object[]

method arguments

info:JexlInfo

contextual information

Returns:JexlMethod

a JexlMethod

getPropertyGetback to summary
public JexlPropertyGet getPropertyGet(Object obj, Object identifier, JexlInfo info)

Property getter.

Returns JexlPropertyGet appropos for ${bar.woogie}.

Parameters
obj:Object

the object to get the property from

identifier:Object

property name

info:JexlInfo

contextual information

Returns:JexlPropertyGet

a JexlPropertyGet

getPropertySetback to summary
public JexlPropertySet getPropertySet(Object obj, Object identifier, Object arg, JexlInfo info)

Property setter.

returns JelPropertySet appropos for ${foo.bar = "geir"}

.
Parameters
obj:Object

the object to get the property from.

identifier:Object

property name

arg:Object

value to set

info:JexlInfo

contextual information

Returns:JexlPropertySet

a JexlPropertySet.

setClassLoaderback to summary
public void setClassLoader(ClassLoader loader)

Sets the class loader to use when getting a constructor with a class name parameter.

Parameters
loader:ClassLoader

the class loader