Package snap.parse

Interface ParseToken

All Known Implementing Classes:
ParseToken.BasicToken

public interface ParseToken
Represents an individual 'word' from parsed text.
  • 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.