Class FieldTool.FieldToolSub
- java.lang.Object
-
- org.apache.velocity.tools.generic.FieldTool.FieldToolSub
-
- Enclosing class:
- FieldTool
public static class FieldTool.FieldToolSub extends java.lang.Object
Holds aMap
of results for a particular class. This exists simply to enable the $field.in("class.Name").FOO syntax, even when storeDynamicLookups is set to false. NOTE: we can't simply return the results Map when the in() methods are called, because the Map contains placeholders for any mutable fields found. We want to put off reading non-final field values to the last moment, in case their values change.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>
results
-
Constructor Summary
Constructors Constructor Description FieldToolSub(java.util.Map<java.lang.String,java.lang.Object> results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String name)
java.lang.String
toString()
Return the toString() value of the internal results Map for this sub.
-