|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.util.introspection.UberspectImpl
Implementation of Uberspect to provide the default introspective functionality of Velocity
Nested Class Summary | |
static class |
UberspectImpl.VelGetterImpl
|
static class |
UberspectImpl.VelMethodImpl
Implementation of VelMethod |
static class |
UberspectImpl.VelSetterImpl
|
Field Summary | |
protected Introspector |
introspector
the default Velocity introspector |
Constructor Summary | |
UberspectImpl()
|
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 - generates the Introspector. |
void |
setLog(Log log)
Sets the runtime logger - this must be called before anything else. |
void |
setRuntimeLogger(RuntimeLogger runtimeLogger)
Deprecated. Use setLog(Log log) instead. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Introspector introspector
Constructor Detail |
public UberspectImpl()
Method Detail |
public void init()
init
in interface Uberspect
public void setLog(Log log)
setLog
in interface UberspectLoggable
log
- The logger instance to use.public void setRuntimeLogger(RuntimeLogger runtimeLogger)
setRuntimeLogger
in interface UberspectLoggable
public Iterator getIterator(Object obj, Info i) throws Exception
#foreach()
loop.
getIterator
in interface Uberspect
obj
- The iterative object.i
- Info about the object's location.
Exception
public VelMethod getMethod(Object obj, String methodName, Object[] args, Info i) throws Exception
getMethod
in interface Uberspect
Exception
public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i) throws Exception
getPropertyGet
in interface Uberspect
Exception
public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i) throws Exception
getPropertySet
in interface Uberspect
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |