Interface Uberspect
- All Known Implementing Classes:
SandboxUberspectImpl, UberspectImpl
public interface Uberspect
'Federated' introspection/reflection interface to allow the introspection
behavior in JEXL to be customized.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionConstructor<?> getConstructor(Object ctorHandle, Object[] args, JexlInfo info) Deprecated.getConstructorMethod(Object ctorHandle, Object[] args, JexlInfo info) Returns a class constructor wrapped in a JexlMethod.Iterator<?> getIterator(Object obj, JexlInfo info) Gets an iterator from an object.Returns a JexlMethod.getPropertyGet(Object obj, Object identifier, JexlInfo info) Property getter.getPropertySet(Object obj, Object identifier, Object arg, JexlInfo info) Property setter.voidsetClassLoader(ClassLoader loader) Sets the class loader to use when getting a constructor with a class name parameter.
-
Method Details
-
setClassLoader
Sets the class loader to use when getting a constructor with a class name parameter.- Parameters:
loader- the class loader
-
getConstructor
Deprecated.Returns a class constructor.- Parameters:
ctorHandle- a class or class nameargs- constructor argumentsinfo- contextual information- Returns:
- a
Constructor
-
getConstructorMethod
Returns a class constructor wrapped in a JexlMethod.- Parameters:
ctorHandle- a class or class nameargs- constructor argumentsinfo- contextual information- Returns:
- a
Constructor - Since:
- 2.1
-
getMethod
Returns a JexlMethod.- Parameters:
obj- the objectmethod- the method nameargs- method argumentsinfo- contextual information- Returns:
- a
JexlMethod
-
getPropertyGet
Property getter.Returns JexlPropertyGet appropos for ${bar.woogie}.
- Parameters:
obj- the object to get the property fromidentifier- property nameinfo- contextual information- Returns:
- a
JexlPropertyGet
-
getPropertySet
Property setter.returns JelPropertySet appropos for ${foo.bar = "geir"}
.- Parameters:
obj- the object to get the property from.identifier- property namearg- value to setinfo- contextual information- Returns:
- a
JexlPropertySet.
-
getIterator
Gets an iterator from an object.- Parameters:
obj- to get the iterator forinfo- contextual information- Returns:
- an iterator over obj
-