org.apache.velocity.tools.generic
Class FieldTool.FieldToolSub
java.lang.Object
org.apache.velocity.tools.generic.FieldTool.FieldToolSub
- Enclosing class:
- FieldTool
public static class FieldTool.FieldToolSub
- extends Object
Holds a Map
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.
FieldTool.FieldToolSub
public FieldTool.FieldToolSub(Map<String,Object> results)
get
public Object get(String name)
toString
public String toString()
- Return the toString() value of the internal results Map for this sub.
- Overrides:
toString
in class Object
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.