public class Tokenizer extends java.lang.Object
TemplateParser
.Modifier and Type | Class and Description |
---|---|
static class |
Tokenizer.Token |
static class |
Tokenizer.TokenType |
Modifier and Type | Field and Description |
---|---|
private int |
c |
private Tokenizer.Token |
currentToken |
private int |
index |
private java.util.Set<java.lang.Character> |
specialCharaters |
private java.lang.String |
template |
private java.lang.StringBuilder |
text |
Constructor and Description |
---|
Tokenizer(java.lang.String template)
Creates a new
Tokenizer |
Modifier and Type | Method and Description |
---|---|
private void |
getChar() |
Tokenizer.Token |
lookAhead() |
Tokenizer.Token |
nextToken() |
Tokenizer.Token |
skip(char lastChar) |
private final java.util.Set<java.lang.Character> specialCharaters
private final java.lang.String template
private int c
private int index
private Tokenizer.Token currentToken
private final java.lang.StringBuilder text
private void getChar()
public Tokenizer.Token nextToken() throws ParseError
ParseError
public Tokenizer.Token lookAhead() throws ParseError
ParseError
public Tokenizer.Token skip(char lastChar)