Package org.openstreetmap.josm.tools.template_engine
Provides classes for a generic template engine used in presets, name rendering and search function.
-
Interface Summary Interface Description TemplateEngineDataProvider Interface for objects that can be used with a template to generate a string.TemplateEntry Interface for one node in the abstract syntax tree that is the result of parsing a template string withTemplateParser. -
Class Summary Class Description CompoundTemplateEntry TemplateEntrythat concatenates several templates.Condition TemplateEntrythat applies other templates based on conditions.ContextSwitchTemplate The context switch offers possibility to use tags of referenced primitive when constructing primitive name.ContextSwitchTemplate.AndSet ContextSwitchTemplate.ChildSet ContextSwitchTemplate.ContextProvider ContextSwitchTemplate.OrSet ContextSwitchTemplate.ParentSet SearchExpressionCondition ConditionalTemplateEntrythat executes another template in case a search expression applies to the given data provider.StaticText TemplateEntryrepresenting a static string.TemplateParser Template parser.Tokenizer This class converts a template string (stream of characters) into a stream of tokens.Tokenizer.Token A token for the parserVariable TemplateEntrythat inserts the value of a variable. -
Enum Summary Enum Description Tokenizer.TokenType The token type -
Exception Summary Exception Description ParseError Exception thrown in case of an error during template parsing.