Package | Description |
---|---|
org.openstreetmap.josm.tools.template_engine |
Provides classes for a generic template engine used in presets, name rendering and search function.
|
Modifier and Type | Field and Description |
---|---|
private Tokenizer.TokenType |
Tokenizer.Token.type |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<Tokenizer.TokenType> |
TemplateParser.CONDITION_WITH_APOSTROPHES_END_TOKENS |
private static java.util.Collection<Tokenizer.TokenType> |
TemplateParser.EXPRESSION_END_TOKENS |
Modifier and Type | Method and Description |
---|---|
Tokenizer.TokenType |
Tokenizer.Token.getType() |
static Tokenizer.TokenType |
Tokenizer.TokenType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Tokenizer.TokenType[] |
Tokenizer.TokenType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
private Tokenizer.Token |
TemplateParser.check(Tokenizer.TokenType expectedToken) |
Modifier and Type | Method and Description |
---|---|
private TemplateEntry |
TemplateParser.parseExpression(java.util.Collection<Tokenizer.TokenType> endTokens) |
Constructor and Description |
---|
ParseError(Tokenizer.Token unexpectedToken,
Tokenizer.TokenType expected)
Constructs a new
ParseError for an unexpected token and an expected token. |
Token(Tokenizer.TokenType type,
int position) |
Token(Tokenizer.TokenType type,
int position,
java.lang.String text) |