org.peaseplate.internal.lang
Class Tokenizer
java.lang.Object
org.peaseplate.internal.lang.Tokenizer
public class Tokenizer
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Tokenizer
public Tokenizer(TemplateLocator locator,
int line,
int column,
char[] code,
int offset,
int length)
getTokenType
public Tokenizer.Type getTokenType()
getTokenValue
public java.lang.Object getTokenValue()
getTokenLine
public int getTokenLine()
getTokenColumn
public int getTokenColumn()
readToken
public Tokenizer.Type readToken()
throws TokenizerException
- Throws:
TokenizerException
readKeyToken
public Tokenizer.Type readKeyToken()
throws TokenizerException
- Parses the next token as key identifier
KeyIdentifier = (LETTER | DIGIT | "_" | "-" | "." | "/") {LETTER | DIGIT | "_" | "-" | "." | "/"}
- Returns:
- the next token
- Throws:
TokenizerException
- on occasion
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008. All Rights Reserved.