Parser class is a template engine. Use an instance to set template variable values, then parse a formatted string containing template variable placeholders to replace their values.
List available variables
You can use the variablePARSER_TREE in double square brackets to print a list of all available variables.
Define data
Void toParser(Parser parser)
Copies a set of values to the parser.Void setVariable(String name, String value)
Sets a named variable to the given value in the parser. If this variable already has a value, the old value will be overwritten with the new value.Void addVariable(String field, String value)
Similar tosetVariable().