Package snap.parse
Interface ParseToken
- All Known Implementing Classes:
ParseToken.BasicToken
public interface ParseToken
Represents an individual 'word' from parsed text.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A basic implementation of a Token.static class
A Builder. -
Method Summary
Modifier and TypeMethodDescriptiondefault int
Returns the column index.int
Returns the end char index of this token in input.int
Returns the line index.getName()
Returns the token name.Returns the pattern.int
Returns the start char index of this token in input.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 input. -
getEndCharIndex
int getEndCharIndex()Returns the end char index of this token in input. -
getLineIndex
int getLineIndex()Returns the line index. -
getStartCharIndexInLine
int getStartCharIndexInLine()Returns the start char index of this token in line. -
getColumnIndex
default int getColumnIndex()Returns the column index. -
getString
String getString()Returns the string.
-