Class FieldTool.MutableField

java.lang.Object
org.apache.velocity.tools.generic.FieldTool.MutableField
Enclosing class:
FieldTool

public static class FieldTool.MutableField extends 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 Details

    • clazz

      private final Class clazz
    • field

      private final Field field
    • log

      private final org.apache.velocity.runtime.log.Log log
  • Constructor Details

    • MutableField

      public MutableField(Field f, Class c, org.apache.velocity.runtime.log.Log l)
  • Method Details

    • getValue

      public Object getValue()