Class 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

      Fields 
      Modifier and Type Field Description
      private java.lang.Class clazz  
      private java.lang.reflect.Field field  
      private org.apache.velocity.runtime.log.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableField​(java.lang.reflect.Field f, java.lang.Class c, org.apache.velocity.runtime.log.Log l)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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
    • Constructor Detail

      • MutableField

        public MutableField​(java.lang.reflect.Field f,
                            java.lang.Class c,
                            org.apache.velocity.runtime.log.Log l)
    • Method Detail

      • getValue

        public java.lang.Object getValue()