|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.velocity.util.introspection.UberspectImpl
org.apache.velocity.util.introspection.AbstractChainableUberspector
org.apache.velocity.util.introspection.LinkingUberspector
When the runtime.introspection.uberspect configuration property contains several uberspector class names, it means those uberspectors will be chained. When an uberspector in the list other than the leftmost does not implement ChainableUberspector, then this utility class is used to provide a basic default chaining where the first non-null result is kept for each introspection call.
ChainableUberspector| Nested Class Summary |
| Nested classes inherited from class org.apache.velocity.util.introspection.UberspectImpl |
UberspectImpl.VelGetterImpl, UberspectImpl.VelMethodImpl, UberspectImpl.VelSetterImpl |
| Field Summary |
| Fields inherited from class org.apache.velocity.util.introspection.AbstractChainableUberspector |
inner |
| Fields inherited from class org.apache.velocity.util.introspection.UberspectImpl |
introspector, log |
| Constructor Summary | |
LinkingUberspector(Uberspect left,
Uberspect right)
Constructor that takes the two uberspectors to link |
|
| 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 |
| Methods inherited from class org.apache.velocity.util.introspection.AbstractChainableUberspector |
wrap |
| 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 |
| Constructor Detail |
public LinkingUberspector(Uberspect left,
Uberspect right)
| Method Detail |
public void init()
Init both wrapped uberspectors
init in interface Uberspectinit in class AbstractChainableUberspectorUberspect.init()
public Iterator getIterator(Object obj,
Info i)
throws Exception
#foreach()
loop.
getIterator in interface UberspectgetIterator in class AbstractChainableUberspectorExceptionUberspect.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 UberspectgetMethod in class AbstractChainableUberspectorExceptionUberspect.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 UberspectgetPropertyGet in class AbstractChainableUberspectorExceptionUberspect.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 UberspectgetPropertySet in class AbstractChainableUberspectorExceptionUberspect.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 | ||||||||||