Modifier and Type | Field and Description |
---|---|
protected @NotNull java.util.List<Processor> |
processors
The processors in order.
|
Constructor and Description |
---|
SequentialProcessor(@NotNull java.util.List<Processor> processors)
Construct a new processor that processes using the given processors in order.
|
SequentialProcessor(Processor... processors)
Construct a new processor that processes using the given processors in order.
|
Modifier and Type | Method and Description |
---|---|
boolean |
process(@NotNull Compilation compilation)
Process the given
compilation . |
@NotNull protected final @NotNull java.util.List<Processor> processors
public SequentialProcessor(@Nullable Processor... processors)
processors
- the processors to be executed when the constructed processor gets
executed.java.lang.NullPointerException
- if the given processors
is null.public SequentialProcessor(@NotNull @NotNull java.util.List<Processor> processors)
processors
- the processors to be executed when the constructed processor gets
executed.java.lang.NullPointerException
- if the given processors
is null.public boolean process(@NotNull @NotNull Compilation compilation)
Processor
compilation
.
true
. The compilation process will have another
round. If all the processors in a compilation return false
, the compilation
process ends.