| Modifier and Type | Class and Description |
|---|---|
| public static interface | ParseResult.
A post processor that can be added to ParserConfiguration to add some processing right after parsing. |
| Modifier and Type | Field and Description |
|---|---|
| private final CommentsCollection | |
| private final List | |
| private final T |
| Access | Constructor and Description |
|---|---|
| public | ParseResult(T
the AST, or empty if it wasn't created. result, List<Problem> a list of encountered parsing problems. problems, CommentsCollection commentsCollection)General constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public Problem | Returns: thei'th encountered parsing problem. May throw IndexOutOfBoundsException.
|
| public List | Returns: the list of encountered parsing problems. Empty when no problems were encountered.
|
| public Optional | |
| public void | |
| public boolean | |
| public String |
| commentsCollection | back to summary |
|---|---|
| private final CommentsCollection commentsCollection | |
| problems | back to summary |
|---|---|
| private final List<Problem> problems | |
| result | back to summary |
|---|---|
| private final T result | |
| ParseResult | back to summary |
|---|---|
| public ParseResult(T result, List<Problem> problems, CommentsCollection commentsCollection) General constructor. | |
| getCommentsCollection | back to summary |
|---|---|
public Optional
| |
| getProblem | back to summary |
|---|---|
public Problem getProblem(int i)
| |
| getProblems | back to summary |
|---|---|
| public List | |
| getResult | back to summary |
|---|---|
public Optional
| |
| ifSuccessful | back to summary |
|---|---|
| public void ifSuccessful(Consumer<T> consumer) Calls the consumer with the result if parsing was succesful. | |
| isSuccessful | back to summary |
|---|---|
public boolean isSuccessful()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| process | back to summary |
|---|---|
| public void process(ParseResult<? extends Node> result, ParserConfiguration configuration) | |