Class Parser.State

java.lang.Object
io.github.treesitter.jtreesitter.Parser.State
Enclosing class:
Parser

public static final class Parser.State extends Object
A class representing the current state of the parser.
Since:
0.25.0
  • Method Details

    • getCurrentByteOffset

      @Unsigned public int getCurrentByteOffset()
      Get the current byte offset of the parser.
    • hasError

      public boolean hasError()
      Check if the parser has encountered an error.
    • toString

      public String toString()
      Overrides:
      toString in class Object