public class ParsingResult<V> extends Object
| Constructor and Description |
|---|
ParsingResult(boolean matched,
ValueStack<V> valueStack,
InputBuffer inputBuffer)
Creates a new ParsingResult.
|
| Modifier and Type | Method and Description |
|---|---|
InputBuffer |
getInputBuffer()
Get the input buffer used by the parsing run
|
V |
getTopStackValue()
Gets the value at the top of the stack, if any
|
ValueStack<V> |
getValueStack()
Get the value stack
|
boolean |
isSuccess()
Return true if this parse result is a match
|
public ParsingResult(boolean matched,
@Nonnull
ValueStack<V> valueStack,
@Nonnull
InputBuffer inputBuffer)
matched - true if the rule matched the inputvalueStack - the value stack of the parsing runinputBuffer - the input bufferpublic boolean isSuccess()
@Nonnull public V getTopStackValue()
IllegalArgumentException - stack is emptyValueStack.peek()@Nonnull public ValueStack<V> getValueStack()
@Nonnull public InputBuffer getInputBuffer()