| org.apache.commons.jexl.util.introspection.Uberspect
All known Subclasses: org.apache.commons.jexl.util.introspection.UberspectImpl,
Uberspect | public interface Uberspect (Code) | | 'Federated' introspection/reflection interface to allow the introspection
behavior in Velocity to be customized.
since: 1.0 author: Geir Magusson Jr. version: $Id: Uberspect.java 398498 2006-05-01 01:48:57Z dion $ |
Method Summary | |
Iterator | getIterator(Object obj, Info info) To support iteratives - #foreach().
Parameters: info - template info. Parameters: obj - to get the iterator for. throws: Exception - on any error. | VelMethod | getMethod(Object obj, String method, Object[] args, Info info) Returns a general method, corresponding to $foo.bar( $woogie ).
Parameters: obj - the object Parameters: method - the method name Parameters: args - method arguments Parameters: info - template info throws: Exception - on any error. | VelPropertyGet | getPropertyGet(Object obj, String identifier, Info info) Property getter - returns VelPropertyGet appropos for #set($foo =
$bar.woogie).
Parameters: obj - the object to get the property from. Parameters: identifier - property name Parameters: info - template info throws: Exception - on any error. | VelPropertySet | getPropertySet(Object obj, String identifier, Object arg, Info info) Property setter - returns VelPropertySet appropos for #set($foo.bar =
"geir").
Parameters: obj - the object to get the property from. Parameters: identifier - property name Parameters: arg - value to set. Parameters: info - template info throws: Exception - on any error. | void | init() Initializer - will be called before use. |
getIterator | Iterator getIterator(Object obj, Info info) throws Exception(Code) | | To support iteratives - #foreach().
Parameters: info - template info. Parameters: obj - to get the iterator for. throws: Exception - on any error. an iterator over obj. |
getMethod | VelMethod getMethod(Object obj, String method, Object[] args, Info info) throws Exception(Code) | | Returns a general method, corresponding to $foo.bar( $woogie ).
Parameters: obj - the object Parameters: method - the method name Parameters: args - method arguments Parameters: info - template info throws: Exception - on any error. a VelMethod. |
getPropertyGet | VelPropertyGet getPropertyGet(Object obj, String identifier, Info info) throws Exception(Code) | | Property getter - returns VelPropertyGet appropos for #set($foo =
$bar.woogie).
Parameters: obj - the object to get the property from. Parameters: identifier - property name Parameters: info - template info throws: Exception - on any error. a VelPropertyGet. |
getPropertySet | VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info info) throws Exception(Code) | | Property setter - returns VelPropertySet appropos for #set($foo.bar =
"geir").
Parameters: obj - the object to get the property from. Parameters: identifier - property name Parameters: arg - value to set. Parameters: info - template info throws: Exception - on any error. a VelPropertySet. |
|
|