|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Uberspect
'Federated' introspection/reflection interface to allow the introspection behavior in Velocity to be customized.
| Method Summary | |
|---|---|
java.util.Iterator |
getIterator(java.lang.Object obj,
Info info)
To support iteratives - #foreach(). |
VelMethod |
getMethod(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args,
Info info)
Returns a general method, corresponding to $foo.bar( $woogie ). |
VelPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info info)
Property getter - returns VelPropertyGet appropos for #set($foo = $bar.woogie). |
VelPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info info)
Property setter - returns VelPropertySet appropos for #set($foo.bar = "geir"). |
void |
init()
Initializer - will be called before use. |
| Method Detail |
|---|
void init()
throws java.lang.Exception
java.lang.Exception - on any error.
java.util.Iterator getIterator(java.lang.Object obj,
Info info)
throws java.lang.Exception
info - template info.obj - to get the iterator for.
java.lang.Exception - on any error.
VelMethod getMethod(java.lang.Object obj,
java.lang.String method,
java.lang.Object[] args,
Info info)
throws java.lang.Exception
obj - the objectmethod - the method nameargs - method argumentsinfo - template info
VelMethod.
java.lang.Exception - on any error.
VelPropertyGet getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info info)
throws java.lang.Exception
obj - the object to get the property from.identifier - property nameinfo - template info
VelPropertyGet.
java.lang.Exception - on any error.
VelPropertySet getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info info)
throws java.lang.Exception
obj - the object to get the property from.identifier - property namearg - value to set.info - template info
VelPropertySet.
java.lang.Exception - on any error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||