Package snap.parse
Interface ParseToken
- All Known Implementing Classes:
ParseTokenImpl
,TextToken
public interface ParseToken
Represents an individual 'word' from parsed text.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the end char index of this token in text.int
Returns the end char index of this token in line.int
Returns the line index.getName()
Returns the token name.Returns the pattern.int
Returns the start char index of this token in text.int
Returns the start char index of this token in line.Returns the string.
-
Method Details
-
getName
String getName()Returns the token name. -
getPattern
String getPattern()Returns the pattern. -
getStartCharIndex
int getStartCharIndex()Returns the start char index of this token in text. -
getEndCharIndex
int getEndCharIndex()Returns the end char index of this token in text. -
getLineIndex
int getLineIndex()Returns the line index. -
getStartCharIndexInLine
int getStartCharIndexInLine()Returns the start char index of this token in line. -
getEndCharIndexInLine
int getEndCharIndexInLine()Returns the end char index of this token in line. -
getString
String getString()Returns the string.
-