| Modifier and Type | Field and Description |
|---|---|
protected @NotNull Parser |
parser
The parser of this processor.
|
| Constructor and Description |
|---|
ParserProcessor(@NotNull Parser parser)
Construct a new processor that parses using the given
parser. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
process(@NotNull Compilation compilation)
Process the given
compilation. |
@NotNull protected final @NotNull Parser parser
public ParserProcessor(@NotNull
@NotNull Parser parser)
parser.parser - the parser to be used by the constructed processor.java.lang.NullPointerException - if the given parser is null.public boolean process(@NotNull
@NotNull Compilation compilation)
Processorcompilation.
true. The compilation process will have another
round. If all the processors in a compilation return false, the compilation
process ends.