| Modifier and Type | Method | Description |
|---|---|---|
abstract <T> T |
get() |
Returns the result of this parse context.
|
String |
getMessage() |
Returns the message of this parse context, only set in case of failure.
|
boolean |
isFailure() |
Returns
true if this result indicates a parse failure. |
boolean |
isSuccess() |
Returns
true if this result indicates a parse success. |
public Result(String buffer, int position)
public boolean isSuccess()
true if this result indicates a parse success.public boolean isFailure()
true if this result indicates a parse failure.public abstract <T> T get()
T - The type of the parse result.public String getMessage()
Copyright © 2018 PetitParser. All rights reserved.