|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.util.introspection.UberspectImpl org.apache.velocity.util.introspection.AbstractChainableUberspector
public abstract class AbstractChainableUberspector
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.
ChainableUberspector
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.velocity.util.introspection.UberspectImpl |
---|
UberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl |
Field Summary | |
---|---|
protected Uberspect |
inner
The wrapped (decorated) uberspector. |
Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl |
---|
introspector, log |
Constructor Summary | |
---|---|
AbstractChainableUberspector()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.apache.velocity.util.introspection.UberspectImpl |
---|
setLog, setRuntimeLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Uberspect inner
Constructor Detail |
---|
public AbstractChainableUberspector()
Method Detail |
---|
public void wrap(Uberspect inner)
wrap
in interface ChainableUberspector
inner
- The decorated uberspector.ChainableUberspector.wrap(org.apache.velocity.util.introspection.Uberspect)
,
inner
public void init()
init
in interface Uberspect
init
in class UberspectImpl
Uberspect.init()
public Iterator getIterator(Object obj, Info i) throws Exception
#foreach()
loop.
getIterator
in interface Uberspect
getIterator
in class UberspectImpl
obj
- The iterative object.i
- Info about the object's location.
Iterator
object.
Exception
Uberspect.getIterator(java.lang.Object,
org.apache.velocity.util.introspection.Info)
public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws Exception
getMethod
in interface Uberspect
getMethod
in class UberspectImpl
Exception
Uberspect.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) throws Exception
getPropertyGet
in interface Uberspect
getPropertyGet
in class UberspectImpl
Exception
Uberspect.getPropertyGet(java.lang.Object, java.lang.String,
org.apache.velocity.util.introspection.Info)
public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception
getPropertySet
in interface Uberspect
getPropertySet
in class UberspectImpl
Exception
Uberspect.getPropertySet(java.lang.Object, java.lang.String,
java.lang.Object, org.apache.velocity.util.introspection.Info)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |