| Modifier and Type | Field and Description |
|---|---|
protected @NotNull Parser |
parser
The parser.
|
protected @NotNull Parser |
then
The then parser.
|
| Constructor and Description |
|---|
ThenAddParser(@NotNull Parser parser,
@NotNull Parser then)
Construct a parser that parses using the given
parser then parses each
resultant tree using the given then and add it to the results. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.Set<Tree> |
parse(@NotNull Compilation compilation,
@NotNull Tree tree)
Parse the given
sketch with respect to the given compilation. |
@NotNull protected final @NotNull Parser parser
@NotNull protected final @NotNull Parser then
public ThenAddParser(@NotNull
@NotNull Parser parser,
@NotNull
@NotNull Parser then)
parser then parses each
resultant tree using the given then and add it to the results.parser - the parser.then - the then parser.java.lang.NullPointerException - if the given parser or then is null.@NotNull public @NotNull java.util.Set<Tree> parse(@NotNull @NotNull Compilation compilation, @NotNull @NotNull Tree tree)
Parsersketch with respect to the given compilation.