public interface Uberspect
Modifier and Type | Method and Description |
---|---|
Iterator |
getIterator(Object obj,
Info info)
To support iteratives - #foreach().
|
VelMethod |
getMethod(Object obj,
String method,
Object[] args,
Info info)
Returns a general method, corresponding to $foo.bar( $woogie ).
|
VelPropertyGet |
getPropertyGet(Object obj,
String identifier,
Info info)
Property getter - returns VelPropertyGet appropos for #set($foo =
$bar.woogie).
|
VelPropertySet |
getPropertySet(Object obj,
String identifier,
Object arg,
Info info)
Property setter - returns VelPropertySet appropos for #set($foo.bar =
"geir").
|
void |
init()
Initializer - will be called before use.
|
void init() throws Exception
Exception
- on any error.Iterator getIterator(Object obj, Info info) throws Exception
info
- template info.obj
- to get the iterator for.Exception
- on any error.VelMethod getMethod(Object obj, String method, Object[] args, Info info) throws Exception
VelPropertyGet getPropertyGet(Object obj, String identifier, Info info) throws Exception
obj
- the object to get the property from.identifier
- property nameinfo
- template infoVelPropertyGet
.Exception
- on any error.VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info info) throws Exception
obj
- the object to get the property from.identifier
- property namearg
- value to set.info
- template infoVelPropertySet
.Exception
- on any error.Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.