Package snap.parse
Class ParseToken.BasicToken
java.lang.Object
snap.parse.ParseToken.BasicToken
- All Implemented Interfaces:
ParseToken
- Enclosing interface:
- ParseToken
A basic implementation of a Token.
-
Nested Class Summary
Nested classes/interfaces inherited from interface snap.parse.ParseToken
ParseToken.BasicToken, ParseToken.Builder
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected String
protected String
protected int
protected int
protected String
protected CharSequence
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface snap.parse.ParseToken
getColumnIndex
-
Field Details
-
_text
-
_name
-
_pattern
-
_startCharIndex
protected int _startCharIndex -
_endCharIndex
protected int _endCharIndex -
_lineIndex
protected int _lineIndex -
_startCharIndexInLine
protected int _startCharIndexInLine -
_string
-
-
Constructor Details
-
BasicToken
public BasicToken()Constructor.
-
-
Method Details
-
getName
Returns the name.- Specified by:
getName
in interfaceParseToken
-
getPattern
Returns the pattern.- Specified by:
getPattern
in interfaceParseToken
-
getStartCharIndex
public int getStartCharIndex()Returns the char start.- Specified by:
getStartCharIndex
in interfaceParseToken
-
getEndCharIndex
public int getEndCharIndex()Returns the char end.- Specified by:
getEndCharIndex
in interfaceParseToken
-
getLineIndex
public int getLineIndex()Returns the line index.- Specified by:
getLineIndex
in interfaceParseToken
-
getStartCharIndexInLine
public int getStartCharIndexInLine()Returns the line start.- Specified by:
getStartCharIndexInLine
in interfaceParseToken
-
getString
Returns the string.- Specified by:
getString
in interfaceParseToken
-
toString
Returns the string.
-