Interface Token
-
- All Known Implementing Classes:
Token.BasicToken
public interface TokenRepresents a portion of a char sequence.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classToken.BasicTokenA basic implementation of a Token.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetColumnIndex()Returns the column index.intgetInputEnd()Returns the index of the end of this token in input.intgetInputStart()Returns the index of the start of this token in input.intgetLineIndex()Returns the line index.intgetLineStart()Returns the line start.java.lang.StringgetName()Returns the name.java.lang.StringgetPattern()Returns the pattern.TokengetSpecialToken()Returns the special token.java.lang.StringgetString()Returns the string.TokenizergetTokenizer()The Tokenizer that provided this token.
-
-
-
Method Detail
-
getTokenizer
Tokenizer getTokenizer()
The Tokenizer that provided this token.
-
getName
java.lang.String getName()
Returns the name.
-
getPattern
java.lang.String getPattern()
Returns the pattern.
-
getInputStart
int getInputStart()
Returns the index of the start of this token in input.
-
getInputEnd
int getInputEnd()
Returns the index of the end of this token in input.
-
getLineIndex
int getLineIndex()
Returns the line index.
-
getLineStart
int getLineStart()
Returns the line start.
-
getColumnIndex
int getColumnIndex()
Returns the column index.
-
getSpecialToken
Token getSpecialToken()
Returns the special token.
-
getString
java.lang.String getString()
Returns the string.
-
-