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 SummaryNested classes/interfaces inherited from interface com.inductiveautomation.snap.parse.TokenToken.BasicToken
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
BasicTokenpublic BasicToken()
 
- 
- 
Method Details- 
getTokenizerThe Tokenizer that provided this token.- Specified by:
- getTokenizerin interface- Token
 
- 
getNameReturns the name.
- 
getPatternReturns the pattern.- Specified by:
- getPatternin interface- Token
 
- 
getInputStartpublic int getInputStart()Returns the char start.- Specified by:
- getInputStartin interface- Token
 
- 
getInputEndpublic int getInputEnd()Returns the char end.- Specified by:
- getInputEndin interface- Token
 
- 
getLineIndexpublic int getLineIndex()Returns the line index.- Specified by:
- getLineIndexin interface- Token
 
- 
getLineStartpublic int getLineStart()Returns the line start.- Specified by:
- getLineStartin interface- Token
 
- 
getColumnIndexpublic int getColumnIndex()Returns the column index.- Specified by:
- getColumnIndexin interface- Token
 
- 
getSpecialTokenReturns the special token.- Specified by:
- getSpecialTokenin interface- Token
 
- 
getStringReturns the string.
- 
createStringCreates the string.
- 
toStringReturns the string.
 
-