|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.util.introspection.UberspectPublicFields
public class UberspectPublicFields
Implementation of Uberspect to additionally provide access to public fields.
| Field Summary | |
|---|---|
protected Introspector |
introspector
the default Velocity introspector |
protected Log |
log
Our runtime logger. |
| Constructor Summary | |
|---|---|
UberspectPublicFields()
|
|
| Method Summary | |
|---|---|
Iterator |
getIterator(Object obj,
Info info)
To support iteratives - #foreach() |
VelMethod |
getMethod(Object obj,
String method,
Object[] args,
Info info)
Returns a general method, corresponding to $foo.bar( $woogie ) |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Log log
protected Introspector introspector
| Constructor Detail |
|---|
public UberspectPublicFields()
| Method Detail |
|---|
public void init()
init in interface Uberspectpublic void setLog(Log log)
setLog in interface UberspectLoggablelog - The logger instance to use.
public VelPropertyGet getPropertyGet(Object obj,
String identifier,
Info i)
getPropertyGet in interface Uberspectobj - identifier - i -
Exception
public VelPropertySet getPropertySet(Object obj,
String identifier,
Object arg,
Info i)
getPropertySet in interface Uberspectobj - identifier - arg - i -
Exception
public Iterator getIterator(Object obj,
Info info)
Uberspect
getIterator in interface Uberspect
public VelMethod getMethod(Object obj,
String method,
Object[] args,
Info info)
Uberspect
getMethod in interface Uberspect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||