Package snap.parse

Interface ParseToken

All Known Implementing Classes:
ParseTokenImpl, TextToken

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 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.