|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.parboiled.support.ParsingResult<V>
public class ParsingResult<V>
A simple container encapsulating the result of a parsing run.
Field Summary | |
---|---|
InputBuffer |
inputBuffer
The underlying input buffer. |
boolean |
matched
Indicates whether the input was successfully parsed. |
java.util.List<ParseError> |
parseErrors
The list of parse errors created during the parsing run. |
Node<V> |
parseTreeRoot
The root node of the parse tree created by the parsing run. |
V |
resultValue
The top value of the value stack at the end of the parsing run or null, if the value stack is empty. |
ValueStack<V> |
valueStack
The ValueStack used during the parsing run containing all values not popped of the stack by the parser. |
Constructor Summary | |
---|---|
ParsingResult(boolean matched,
Node<V> parseTreeRoot,
ValueStack<V> valueStack,
java.util.List<ParseError> parseErrors,
InputBuffer inputBuffer)
Creates a new ParsingResult. |
Method Summary | |
---|---|
boolean |
hasErrors()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final boolean matched
public final Node<V> parseTreeRoot
public final V resultValue
public final ValueStack<V> valueStack
public final java.util.List<ParseError> parseErrors
public final InputBuffer inputBuffer
Constructor Detail |
---|
public ParsingResult(boolean matched, Node<V> parseTreeRoot, ValueStack<V> valueStack, java.util.List<ParseError> parseErrors, InputBuffer inputBuffer)
matched
- true if the rule matched the inputparseTreeRoot
- the parse tree root nodevalueStack
- the value stack of the parsing runparseErrors
- the list of parse errorsinputBuffer
- the input bufferMethod Detail |
---|
public boolean hasErrors()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |