Class Token.BasicToken
java.lang.Object
com.inductiveautomation.snap.parse.Token.BasicToken
- All Implemented Interfaces:
Token
- Enclosing interface:
- Token
A basic implementation of a Token.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.snap.parse.Token
Token.BasicToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Creates the string.int
Returns the column index.int
Returns the char end.int
Returns the char start.int
Returns the line index.int
Returns the line start.getName()
Returns the name.Returns the pattern.Returns the special token.Returns the string.The Tokenizer that provided this token.toString()
Returns the string.
-
Constructor Details
-
BasicToken
public BasicToken()
-
-
Method Details
-
getTokenizer
The Tokenizer that provided this token.- Specified by:
getTokenizer
in interfaceToken
-
getName
Returns the name. -
getPattern
Returns the pattern.- Specified by:
getPattern
in interfaceToken
-
getInputStart
public int getInputStart()Returns the char start.- Specified by:
getInputStart
in interfaceToken
-
getInputEnd
public int getInputEnd()Returns the char end.- Specified by:
getInputEnd
in interfaceToken
-
getLineIndex
public int getLineIndex()Returns the line index.- Specified by:
getLineIndex
in interfaceToken
-
getLineStart
public int getLineStart()Returns the line start.- Specified by:
getLineStart
in interfaceToken
-
getColumnIndex
public int getColumnIndex()Returns the column index.- Specified by:
getColumnIndex
in interfaceToken
-
getSpecialToken
Returns the special token.- Specified by:
getSpecialToken
in interfaceToken
-
getString
Returns the string. -
createString
Creates the string. -
toString
Returns the string.
-