public class UberspectImpl extends java.lang.Object implements Uberspect, UberspectLoggable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UberspectImpl.VelGetterImpl |
static class |
UberspectImpl.VelMethodImpl
Implementation of VelMethod
|
static class |
UberspectImpl.VelSetterImpl |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Introspector |
introspector
the default Velocity introspector
|
protected Log |
log
Our runtime logger.
|
| 构造器和说明 |
|---|
UberspectImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Iterator |
getIterator(java.lang.Object obj,
Info i)
To support iterative objects used in a
#foreach()
loop. |
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 - generates the Introspector.
|
void |
setLog(Log log)
Sets the runtime logger - this must be called before anything
else.
|
void |
setRuntimeLogger(RuntimeLogger runtimeLogger)
已过时。
Use setLog(Log log) instead.
|
protected Log log
protected Introspector introspector
public void init()
public void setLog(Log log)
setLog 在接口中 UberspectLoggablelog - The logger instance to use.public void setRuntimeLogger(RuntimeLogger runtimeLogger)
setRuntimeLogger 在接口中 UberspectLoggableruntimeLogger - public java.util.Iterator getIterator(java.lang.Object obj,
Info i)
throws java.lang.Exception
#foreach()
loop.getIterator 在接口中 Uberspectobj - The iterative object.i - Info about the object's location.Iterator object.java.lang.Exceptionpublic 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 在接口中 Uberspectobj - identifier - i - java.lang.Exceptionpublic VelPropertySet getPropertySet(java.lang.Object obj, java.lang.String identifier, java.lang.Object arg, Info i) throws java.lang.Exception
getPropertySet 在接口中 Uberspectobj - identifier - arg - i - java.lang.Exception