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.
|
conversionHandler, introspector, log, rsvc| Constructor and Description |
|---|
AbstractChainableUberspector() |
| Modifier and Type | Method and Description |
|---|---|
Iterator |
getIterator(Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
VelMethod |
getMethod(Object obj,
String methodName,
Object[] args,
Info i)
Method
|
VelPropertyGet |
getPropertyGet(Object obj,
String identifier,
Info i)
Property getter
|
VelPropertySet |
getPropertySet(Object obj,
String identifier,
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
|
getConversionHandler, setLog, setRuntimeServicesprotected Uberspect inner
public void wrap(Uberspect inner)
wrap in interface ChainableUberspectorinner - The decorated uberspector.ChainableUberspector.wrap(org.apache.velocity.util.introspection.Uberspect),
innerpublic void init()
init in interface Uberspectinit in class UberspectImplUberspect.init()public Iterator getIterator(Object obj, Info i)
#foreach()
loop.getIterator in interface UberspectgetIterator in class UberspectImplobj - The iterative object.i - Info about the object's location.Iterator object.Uberspect.getIterator(java.lang.Object,
org.apache.velocity.util.introspection.Info)public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i)
getMethod in interface UberspectgetMethod in class UberspectImplUberspect.getMethod(java.lang.Object, java.lang.String,
java.lang.Object[], org.apache.velocity.util.introspection.Info)public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
getPropertyGet in interface UberspectgetPropertyGet in class UberspectImplUberspect.getPropertyGet(java.lang.Object, java.lang.String,
org.apache.velocity.util.introspection.Info)public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
getPropertySet in interface UberspectgetPropertySet in class UberspectImplUberspect.getPropertySet(java.lang.Object, java.lang.String,
java.lang.Object, org.apache.velocity.util.introspection.Info)Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.