Class Parser.Options

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

@NullMarked public static final class Parser.Options extends Object
A class representing the parser options.
Since:
0.25.0
  • Constructor Details

    • Options

      public Options(Predicate<Parser.State> progressCallback)
      Parameters:
      progressCallback - Called when parsing progress was made. Return true to cancel parsing, false to continue parsing.