org.openstreetmap.josm.tools.template_engine
Class Tokenizer

java.lang.Object
  extended by org.openstreetmap.josm.tools.template_engine.Tokenizer

public class Tokenizer
extends java.lang.Object


Nested Class Summary
static class Tokenizer.Token
           
static class Tokenizer.TokenType
           
 
Field Summary
private  int c
           
private  Tokenizer.Token currentToken
           
private  int index
           
private  java.util.List<java.lang.Character> specialCharaters
           
private  java.lang.String template
           
private  java.lang.StringBuilder text
           
 
Constructor Summary
Tokenizer(java.lang.String template)
           
 
Method Summary
private  void getChar()
           
 Tokenizer.Token lookAhead()
           
 Tokenizer.Token nextToken()
           
 Tokenizer.Token skip(char lastChar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

specialCharaters

private final java.util.List<java.lang.Character> specialCharaters

template

private final java.lang.String template

c

private int c

index

private int index

currentToken

private Tokenizer.Token currentToken

text

private java.lang.StringBuilder text
Constructor Detail

Tokenizer

public Tokenizer(java.lang.String template)
Method Detail

getChar

private void getChar()

nextToken

public Tokenizer.Token nextToken()
                          throws ParseError
Throws:
ParseError

lookAhead

public Tokenizer.Token lookAhead()
                          throws ParseError
Throws:
ParseError

skip

public Tokenizer.Token skip(char lastChar)


JOSM