public class ProcessorsInitializer extends java.lang.Object implements Initializer
| Modifier and Type | Field and Description |
|---|---|
protected @NotNull java.util.List<Processor> |
processors
The processors used by this initializer.
|
| Constructor and Description |
|---|
ProcessorsInitializer(@NotNull java.util.List<Processor> processors)
Construct a new initializer that initializes using the given
processors. |
ProcessorsInitializer(Processor... processors)
Construct a new initializer that initializes using the given
processors. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
initialize(@NotNull Environment environment,
Document... documents)
Initialize compilations for the given
documents in the given environment. |
@NotNull protected final @NotNull java.util.List<Processor> processors
public ProcessorsInitializer(@Nullable
Processor... processors)
processors.
processors - the processors to be used by the constructed initializer.java.lang.NullPointerException - if the given processors is null.public ProcessorsInitializer(@NotNull
@NotNull java.util.List<Processor> processors)
processors.
processors - the processors to be used by the constructed initializer.java.lang.NullPointerException - if the given processors is null.public boolean initialize(@NotNull
@NotNull Environment environment,
@Nullable
Document... documents)
Initializerdocuments in the given environment.
initialize in interface Initializerenvironment - the environment to initialize the compilations in.documents - the documents to initialize compilations for.documents in the given compilation, false if there was already a
compilation foreach of the given documents in the given environment and this initializer has done nothing to any of them.