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
Contains the result of a parsing operation.
- the new index position
- the object created
- Author:
- pchretien
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.PegResult(int index, R result, PegNoMatchFoundException bestUncompleteRule) Constructor. -
Method Summary
-
Constructor Details
-
PegResult
Constructor.- Parameters:
index-result-
-
PegResult
Constructor.- Parameters:
index-result-bestUncompleteRule-
-
-
Method Details
-
getIndex
public int getIndex()- Returns:
- Index
-
getValue
- Returns:
- the result value
-
getBestUncompleteRule
- Returns:
- the best Uncomplete Rule
-