Interface Token
-
- All Known Implementing Classes:
Token.BasicToken
public interface Token
Represents a portion of a char sequence.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Token.BasicToken
A basic implementation of a Token.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getColumnIndex()
Returns the column index.int
getInputEnd()
Returns the index of the end of this token in input.int
getInputStart()
Returns the index of the start of this token in input.int
getLineIndex()
Returns the line index.int
getLineStart()
Returns the line start.java.lang.String
getName()
Returns the name.java.lang.String
getPattern()
Returns the pattern.Token
getSpecialToken()
Returns the special token.java.lang.String
getString()
Returns the string.Tokenizer
getTokenizer()
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.
-
-