|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.tools.generic.introspection.PublicFieldUberspect.PublicFieldGetter
protected class PublicFieldUberspect.PublicFieldGetter
Implementation of VelPropertyGet
that gets from public fields.
Constructor Summary | |
---|---|
PublicFieldUberspect.PublicFieldGetter(java.lang.reflect.Field field)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getMethodName()
Returns "public field getter" , since there is no method. |
java.lang.Object |
invoke(java.lang.Object o)
Returns the value of the public field. |
boolean |
isCacheable()
This class is cacheable, so it returns true . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublicFieldUberspect.PublicFieldGetter(java.lang.reflect.Field field)
field
- The Field
object representing the property.Method Detail |
---|
public java.lang.Object invoke(java.lang.Object o) throws java.lang.Exception
invoke
in interface org.apache.velocity.util.introspection.VelPropertyGet
o
- the object
java.lang.Exception
- failed to get the value from the objectpublic boolean isCacheable()
true
.
isCacheable
in interface org.apache.velocity.util.introspection.VelPropertyGet
true
.public java.lang.String getMethodName()
"public field getter"
, since there is no method.
getMethodName
in interface org.apache.velocity.util.introspection.VelPropertyGet
"public field getter"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |