Package org.openstreetmap.josm.tools.template_engine
package org.openstreetmap.josm.tools.template_engine
Provides classes for a generic template engine used in presets, name rendering and search function.
-
ClassDescription
TemplateEntrythat concatenates several templates.TemplateEntrythat applies other templates based on conditions.The context switch offers possibility to use tags of referenced primitive when constructing primitive name.Exception thrown in case of an error during template parsing.ConditionalTemplateEntrythat executes another template in case a search expression applies to the given data provider.TemplateEntryrepresenting a static string.Interface for objects that can be used with a template to generate a string.Interface for one node in the abstract syntax tree that is the result of parsing a template string withTemplateParser.Template parser.This class converts a template string (stream of characters) into a stream of tokens.A token for the parserThe token typeTemplateEntrythat inserts the value of a variable.