public class UberspectImpl extends Object implements Uberspect, RuntimeServicesAware
Modifier and Type | Class and Description |
---|---|
static class |
UberspectImpl.VelGetterImpl |
class |
UberspectImpl.VelMethodImpl
Implementation of VelMethod
|
static class |
UberspectImpl.VelSetterImpl |
Modifier and Type | Field and Description |
---|---|
protected TypeConversionHandler |
conversionHandler
the conversion handler
|
protected Introspector |
introspector
the default Velocity introspector
|
protected org.slf4j.Logger |
log
Our runtime logger.
|
protected RuntimeServices |
rsvc
runtime services
|
Constructor and Description |
---|
UberspectImpl() |
Modifier and Type | Method and Description |
---|---|
TypeConversionHandler |
getConversionHandler() |
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(org.slf4j.Logger log)
Deprecated.
logger is now set by default to the namespace logger "velocity.rendering".
|
void |
setRuntimeServices(RuntimeServices rs)
sets the runtime services
|
protected org.slf4j.Logger log
protected Introspector introspector
protected TypeConversionHandler conversionHandler
protected RuntimeServices rsvc
public void init()
public TypeConversionHandler getConversionHandler()
public void setRuntimeServices(RuntimeServices rs)
setRuntimeServices
in interface RuntimeServicesAware
rs
- runtime servicespublic void setLog(org.slf4j.Logger log)
log
- The logger instance to use.public Iterator getIterator(Object obj, Info i)
#foreach()
loop.getIterator
in interface Uberspect
obj
- The iterative object.i
- Info about the object's location.Iterator
object.public VelPropertyGet getPropertyGet(Object obj, String identifier, Info i)
getPropertyGet
in interface Uberspect
obj
- identifier
- i
- public VelPropertySet getPropertySet(Object obj, String identifier, Object arg, Info i)
getPropertySet
in interface Uberspect
obj
- identifier
- arg
- i
- Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.