Class AbstractChainableUberspector
- java.lang.Object
-
- org.apache.velocity.util.introspection.UberspectImpl
-
- org.apache.velocity.util.introspection.AbstractChainableUberspector
-
- All Implemented Interfaces:
ChainableUberspector,Uberspect,RuntimeServicesAware
- Direct Known Subclasses:
DeprecatedCheckUberspector,LinkingUberspector
public abstract class AbstractChainableUberspector extends UberspectImpl implements ChainableUberspector
Default implementation of achainable uberspectorthat forwards all calls to the wrapped uberspector (when that is possible). It should be used as the base class for all chainable uberspectors.- Since:
- 1.6
- Version:
- $Id: $
- See Also:
ChainableUberspector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.velocity.util.introspection.UberspectImpl
UberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected UberspectinnerThe wrapped (decorated) uberspector.-
Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl
conversionHandler, introspector, log, rsvc
-
-
Constructor Summary
Constructors Constructor Description AbstractChainableUberspector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IteratorgetIterator(Object obj, Info i)To support iterative objects used in a#foreach()loop.VelMethodgetMethod(Object obj, String methodName, Object[] args, Info i)MethodVelPropertyGetgetPropertyGet(Object obj, String identifier, Info i)Property getterVelPropertySetgetPropertySet(Object obj, String identifier, Object arg, Info i)Property settervoidinit()init - the chainable uberspector is responsible for the initialization of the wrapped uberspectorvoidwrap(Uberspect inner)Specify the decorated Uberspector-
Methods inherited from class org.apache.velocity.util.introspection.UberspectImpl
getConversionHandler, setLog, setRuntimeServices
-
-
-
-
Field Detail
-
inner
protected Uberspect inner
The wrapped (decorated) uberspector.
-
-
Method Detail
-
wrap
public void wrap(Uberspect inner)
Specify the decorated Uberspector- Specified by:
wrapin interfaceChainableUberspector- Parameters:
inner- The decorated uberspector.- See Also:
ChainableUberspector.wrap(org.apache.velocity.util.introspection.Uberspect),inner
-
init
public void init()
init - the chainable uberspector is responsible for the initialization of the wrapped uberspector- Specified by:
initin interfaceUberspect- Overrides:
initin classUberspectImpl- See Also:
Uberspect.init()
-
getIterator
public Iterator getIterator(Object obj, Info i)
To support iterative objects used in a#foreach()loop.- Specified by:
getIteratorin interfaceUberspect- Overrides:
getIteratorin classUberspectImpl- Parameters:
obj- The iterative object.i- Info about the object's location.- Returns:
- An
Iteratorobject. - See Also:
Uberspect.getIterator(java.lang.Object, org.apache.velocity.util.introspection.Info)
-
getMethod
public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i)
Method- Specified by:
getMethodin interfaceUberspect- Overrides:
getMethodin classUberspectImpl- Returns:
- A Velocity Method.
- See Also:
Uberspect.getMethod(java.lang.Object, java.lang.String, java.lang.Object[], org.apache.velocity.util.introspection.Info)
-
getPropertyGet
public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
Property getter- Specified by:
getPropertyGetin interfaceUberspect- Overrides:
getPropertyGetin classUberspectImpl- Returns:
- A Velocity Getter Method.
- See Also:
Uberspect.getPropertyGet(java.lang.Object, java.lang.String, org.apache.velocity.util.introspection.Info)
-
getPropertySet
public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
Property setter- Specified by:
getPropertySetin interfaceUberspect- Overrides:
getPropertySetin classUberspectImpl- Returns:
- A Velocity Setter method.
- See Also:
Uberspect.getPropertySet(java.lang.Object, java.lang.String, java.lang.Object, org.apache.velocity.util.introspection.Info)
-
-