org.apache.velocity.tools.generic
Class FieldTool.MutableField
java.lang.Object
org.apache.velocity.tools.generic.FieldTool.MutableField
- Enclosing class:
- FieldTool
public static class FieldTool.MutableField
- extends java.lang.Object
Holds a Field
and Class
reference for later
retrieval of the value of a field that is not final and may
change at different lookups. If a Log
is passed in,
then this will log errors, otherwise it will fail silently.
Field Summary |
private java.lang.Class |
clazz
|
private java.lang.reflect.Field |
field
|
private org.apache.velocity.runtime.log.Log |
log
|
Constructor Summary |
FieldTool.MutableField(java.lang.reflect.Field f,
java.lang.Class c,
org.apache.velocity.runtime.log.Log l)
|
Method Summary |
java.lang.Object |
getValue()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clazz
private final java.lang.Class clazz
field
private final java.lang.reflect.Field field
log
private final org.apache.velocity.runtime.log.Log log
FieldTool.MutableField
public FieldTool.MutableField(java.lang.reflect.Field f,
java.lang.Class c,
org.apache.velocity.runtime.log.Log l)
getValue
public java.lang.Object getValue()
Copyright (c) 2003-2007 Apache Software Foundation