Class AbstractParseRunner<V>

java.lang.Object
org.parboiled.parserunners.AbstractParseRunner<V>
All Implemented Interfaces:
ParseRunner<V>
Direct Known Subclasses:
BasicParseRunner, ErrorLocatingParseRunner, ErrorReportingParseRunner, ProfilingParseRunner, RecoveringParseRunner, ReportingParseRunner

public abstract class AbstractParseRunner<V> extends Object implements ParseRunner<V>
  • Constructor Details

    • AbstractParseRunner

      public AbstractParseRunner(Rule rule)
  • Method Details

    • getRootMatcher

      public Matcher getRootMatcher()
    • withParseErrors

      public ParseRunner<V> withParseErrors(List<ParseError> parseErrors)
      Description copied from interface: ParseRunner
      Initializes the parse runner with the given error list.
      Specified by:
      withParseErrors in interface ParseRunner<V>
      Parameters:
      parseErrors - the error list to start off with
      Returns:
      this instance
    • getParseErrors

      public List<ParseError> getParseErrors()
    • withValueStack

      public ParseRunner<V> withValueStack(ValueStack<V> valueStack)
      Description copied from interface: ParseRunner
      Initializes the parse runner with the given ValueStack instance.
      Specified by:
      withValueStack in interface ParseRunner<V>
      Parameters:
      valueStack - the ValueStack to use
      Returns:
      this instance
    • getValueStack

      public ValueStack<V> getValueStack()
    • run

      public ParsingResult<V> run(String input)
      Description copied from interface: ParseRunner
      Performs the actual parse and creates a corresponding ParsingResult instance.
      Specified by:
      run in interface ParseRunner<V>
      Parameters:
      input - the input text to parse
      Returns:
      the ParsingResult for the run
    • run

      public ParsingResult<V> run(char[] input)
      Description copied from interface: ParseRunner
      Performs the actual parse and creates a corresponding ParsingResult instance.
      Specified by:
      run in interface ParseRunner<V>
      Parameters:
      input - the input text to parse
      Returns:
      the ParsingResult for the run