Class PegResult<R>

java.lang.Object
io.vertigo.commons.peg.PegResult<R>
Type Parameters:
R - the type of the Result Object

public final class PegResult<R> extends Object
Contains the result of a parsing operation. - the new index position - the object created
Author:
pchretien
  • Constructor Details

    • PegResult

      public PegResult(int index, R result)
      Constructor.
      Parameters:
      index -
      result -
    • PegResult

      public PegResult(int index, R result, PegNoMatchFoundException bestUncompleteRule)
      Constructor.
      Parameters:
      index -
      result -
      bestUncompleteRule -
  • Method Details

    • getIndex

      public int getIndex()
      Returns:
      Index
    • getValue

      public R getValue()
      Returns:
      the result value
    • getBestUncompleteRule

      public Optional<PegNoMatchFoundException> getBestUncompleteRule()
      Returns:
      the best Uncomplete Rule