Package io.vertigo.commons.peg
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<PegNoMatchFoundException>
getBestUncompleteRule()
int
getIndex()
R
getValue()
-
-
-
Method Detail
-
getIndex
public int getIndex()
- Returns:
- Index
-
getValue
public R getValue()
- Returns:
- the result value
-
getBestUncompleteRule
public Optional<PegNoMatchFoundException> getBestUncompleteRule()
- Returns:
- the best Uncomplete Rule
-
-