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 a
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.- Since:
- 1.6
- Version:
- $Id: $
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.velocity.util.introspection.UberspectImpl
UberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl -
Field Summary
FieldsFields inherited from class org.apache.velocity.util.introspection.UberspectImpl
conversionHandler, introspector, log, rsvc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIterator(Object obj, Info i) To support iterative objects used in a#foreach()loop.MethodgetPropertyGet(Object obj, String identifier, Info i) Property gettergetPropertySet(Object obj, String identifier, Object arg, Info i) Property settervoidinit()init - the chainable uberspector is responsible for the initialization of the wrapped uberspectorvoidSpecify the decorated UberspectorMethods inherited from class org.apache.velocity.util.introspection.UberspectImpl
getConversionHandler, setLog, setRuntimeServices
-
Field Details
-
inner
The wrapped (decorated) uberspector.
-
-
Constructor Details
-
AbstractChainableUberspector
public AbstractChainableUberspector()
-
-
Method Details
-
wrap
Specify the decorated Uberspector- Specified by:
wrapin interfaceChainableUberspector- Parameters:
inner- The decorated uberspector.- See Also:
-
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:
-
getIterator
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:
-
getMethod
Method- Specified by:
getMethodin interfaceUberspect- Overrides:
getMethodin classUberspectImpl- Parameters:
obj-methodName-args-i-- Returns:
- A Velocity Method.
- See Also:
-
getPropertyGet
Property getter- Specified by:
getPropertyGetin interfaceUberspect- Overrides:
getPropertyGetin classUberspectImpl- Parameters:
obj-identifier-i-- Returns:
- A Velocity Getter Method.
- See Also:
-
getPropertySet
Property setter- Specified by:
getPropertySetin interfaceUberspect- Overrides:
getPropertySetin classUberspectImpl- Parameters:
obj-identifier-arg-i-- Returns:
- A Velocity Setter method.
- See Also:
-