Class AbstractChainableUberspector
java.lang.Object
org.apache.velocity.util.introspection.UberspectImpl
org.apache.velocity.util.introspection.AbstractChainableUberspector
- All Implemented Interfaces:
ChainableUberspector
,Uberspect
,UberspectLoggable
- Direct Known Subclasses:
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
introspector, log
-
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 settervoid
init()
init - the chainable uberspector is responsible for the initialization of the wrapped uberspectorvoid
Specify the decorated UberspectorMethods inherited from class org.apache.velocity.util.introspection.UberspectImpl
setLog, setRuntimeLogger
-
Field Details
-
inner
The wrapped (decorated) uberspector.
-
-
Constructor Details
-
AbstractChainableUberspector
public AbstractChainableUberspector()
-
-
Method Details
-
wrap
Specify the decorated Uberspector- Specified by:
wrap
in 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:
init
in interfaceUberspect
- Overrides:
init
in classUberspectImpl
- See Also:
-
getIterator
To support iterative objects used in a#foreach()
loop.- Specified by:
getIterator
in interfaceUberspect
- Overrides:
getIterator
in classUberspectImpl
- Parameters:
obj
- The iterative object.i
- Info about the object's location.- Returns:
- An
Iterator
object. - Throws:
Exception
- See Also:
-
getMethod
Method- Specified by:
getMethod
in interfaceUberspect
- Overrides:
getMethod
in classUberspectImpl
- Returns:
- A Velocity Method.
- Throws:
Exception
- See Also:
-
getPropertyGet
Property getter- Specified by:
getPropertyGet
in interfaceUberspect
- Overrides:
getPropertyGet
in classUberspectImpl
- Returns:
- A Velocity Getter Method.
- Throws:
Exception
- See Also:
-
getPropertySet
public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception Property setter- Specified by:
getPropertySet
in interfaceUberspect
- Overrides:
getPropertySet
in classUberspectImpl
- Returns:
- A Velocity Setter method.
- Throws:
Exception
- See Also:
-