public abstract class AbstractChainableUberspector extends UberspectImpl implements ChainableUberspector
chainable uberspector that forwards all calls to the wrapped
uberspector (when that is possible). It should be used as the base class for all chainable uberspectors.ChainableUberspectorUberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl| Modifier and Type | Field and Description |
|---|---|
protected Uberspect |
inner
The wrapped (decorated) uberspector.
|
introspector, log| Constructor and Description |
|---|
AbstractChainableUberspector() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
getIterator(java.lang.Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
VelMethod |
getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method
|
VelPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
void |
init()
init - the chainable uberspector is responsible for the initialization of the wrapped uberspector
|
void |
wrap(Uberspect inner)
Specify the decorated Uberspector
|
setLog, setRuntimeLoggerprotected Uberspect inner
public void wrap(Uberspect inner)
wrap in interface ChainableUberspectorinner - The decorated uberspector.ChainableUberspector.wrap(bboss.org.apache.velocity.util.introspection.Uberspect),
innerpublic void init()
init in interface Uberspectinit in class UberspectImplUberspect.init()public java.util.Iterator getIterator(java.lang.Object obj,
Info i)
throws java.lang.Exception
#foreach()
loop.getIterator in interface UberspectgetIterator in class UberspectImplobj - The iterative object.i - Info about the object's location.Iterator object.java.lang.ExceptionUberspect.getIterator(java.lang.Object,
bboss.org.apache.velocity.util.introspection.Info)public VelMethod getMethod(java.lang.Object obj, java.lang.String methodName, java.lang.Object[] args, Info i) throws java.lang.Exception
getMethod in interface UberspectgetMethod in class UberspectImpljava.lang.ExceptionUberspect.getMethod(java.lang.Object, java.lang.String,
java.lang.Object[], bboss.org.apache.velocity.util.introspection.Info)public VelPropertyGet getPropertyGet(java.lang.Object obj, java.lang.String identifier, Info i) throws java.lang.Exception
getPropertyGet in interface UberspectgetPropertyGet in class UberspectImpljava.lang.ExceptionUberspect.getPropertyGet(java.lang.Object, java.lang.String,
bboss.org.apache.velocity.util.introspection.Info)public VelPropertySet getPropertySet(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, Info i) throws java.lang.Exception
getPropertySet in interface UberspectgetPropertySet in class UberspectImpljava.lang.ExceptionUberspect.getPropertySet(java.lang.Object, java.lang.String,
java.lang.Object, bboss.org.apache.velocity.util.introspection.Info)