|
||||||||||
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.PublicFieldSetter
protected class PublicFieldUberspect.PublicFieldSetter
Implementation of VelPropertySet
that sets to public fields.
Constructor Summary | |
---|---|
PublicFieldUberspect.PublicFieldSetter(java.lang.reflect.Field field)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getMethodName()
Returns "public field setter" , since there is no method. |
java.lang.Object |
invoke(java.lang.Object o,
java.lang.Object value)
Sets the value to 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.PublicFieldSetter(java.lang.reflect.Field field)
field
- The Field
object representing the property.Method Detail |
---|
public java.lang.Object invoke(java.lang.Object o, java.lang.Object value) throws java.lang.Exception
invoke
in interface org.apache.velocity.util.introspection.VelPropertySet
o
- the objectvalue
- the value to set
null
java.lang.Exception
- failed to set the value to the objectpublic boolean isCacheable()
true
.
isCacheable
in interface org.apache.velocity.util.introspection.VelPropertySet
true
.public java.lang.String getMethodName()
"public field setter"
, since there is no method.
getMethodName
in interface org.apache.velocity.util.introspection.VelPropertySet
"public field setter"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |