org.apache.velocity.util.introspection
public class UberspectImpl extends java.lang.Object implements Uberspect, UberspectLoggable
Modifier and Type | Class and Description |
---|---|
class |
UberspectImpl.VelGetterImpl |
class |
UberspectImpl.VelMethodImpl
Implementation of VelMethod
|
class |
UberspectImpl.VelSetterImpl |
Modifier and Type | Field and Description |
---|---|
private static Introspector |
introspector
the default Velocity introspector
|
private RuntimeLogger |
rlog
Our runtime logger.
|
Constructor and Description |
---|
UberspectImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator |
getIterator(java.lang.Object obj,
Info i)
To support iteratives - #foreach()
|
VelMethod |
getMethod(java.lang.Object obj,
java.lang.String methodName,
java.lang.Object[] args,
Info i)
Method
|
VelPropertyGet |
getPropertyGet(java.lang.Object obj,
java.lang.String identifier,
Info i)
Property getter
|
VelPropertySet |
getPropertySet(java.lang.Object obj,
java.lang.String identifier,
java.lang.Object arg,
Info i)
Property setter
|
void |
init()
init - does nothing - we need to have setRuntimeLogger
called before getting our introspector, as the default
vel introspector depends upon it.
|
void |
setRuntimeLogger(RuntimeLogger runtimeLogger)
Sets the runtime logger - this must be called before anything
else besides init() as to get the logger.
|
private RuntimeLogger rlog
private static Introspector introspector
public void init() throws java.lang.Exception
public void setRuntimeLogger(RuntimeLogger runtimeLogger)
setRuntimeLogger
in interface UberspectLoggable
public java.util.Iterator getIterator(java.lang.Object obj, Info i) throws java.lang.Exception
getIterator
in interface Uberspect
java.lang.Exception
public VelMethod getMethod(java.lang.Object obj, java.lang.String methodName, java.lang.Object[] args, Info i) throws java.lang.Exception
public VelPropertyGet getPropertyGet(java.lang.Object obj, java.lang.String identifier, Info i) throws java.lang.Exception
getPropertyGet
in interface Uberspect
java.lang.Exception
public VelPropertySet getPropertySet(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, Info i) throws java.lang.Exception
getPropertySet
in interface Uberspect
java.lang.Exception
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.