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 StringCreates the string.intReturns the column index.intReturns the char end.intReturns the char start.intReturns the line index.intReturns 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:
getTokenizerin interfaceToken
-
getName
Returns the name. -
getPattern
Returns the pattern.- Specified by:
getPatternin interfaceToken
-
getInputStart
public int getInputStart()Returns the char start.- Specified by:
getInputStartin interfaceToken
-
getInputEnd
public int getInputEnd()Returns the char end.- Specified by:
getInputEndin interfaceToken
-
getLineIndex
public int getLineIndex()Returns the line index.- Specified by:
getLineIndexin interfaceToken
-
getLineStart
public int getLineStart()Returns the line start.- Specified by:
getLineStartin interfaceToken
-
getColumnIndex
public int getColumnIndex()Returns the column index.- Specified by:
getColumnIndexin interfaceToken
-
getSpecialToken
Returns the special token.- Specified by:
getSpecialTokenin interfaceToken
-
getString
Returns the string. -
createString
Creates the string. -
toString
Returns the string.
-