public final class Jamplate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static @NotNull Analyzer |
ANALYZER
The default jamplate analyzer.
|
static @NotNull Processor |
ANALYZER_PROCESSOR
A processor for the jamplate analyzer.
|
static @NotNull Compiler |
COMPILER
The default jamplate compiler.
|
static @NotNull Processor |
COMPILER_PROCESSOR
A processor for the jamplate compiler.
|
static @NotNull Initializer |
INITIALIZER
The default jamplate initializer.
|
static @NotNull Parser |
PARSER
An all-in-one parser used by the jamplate default implementation.
|
static @NotNull Processor |
PARSER_PROCESSOR
A processor wrapper for the jamplate parser.
|
static @NotNull Processor |
PROCESSOR
A processor that analyzes the default jamplate components searching for known
jamplate specs.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compile(@NotNull Environment environment,
Document... documents)
Compile the given
documents to the given environment. |
static boolean |
execute(@NotNull Environment environment,
Compilation... compilations)
Execute the given
compilations in order with respect to the given environment. |
static boolean |
execute(@NotNull Environment environment,
@NotNull java.util.function.Function<Compilation,Memory> memorySupplier,
Compilation... compilations)
Execute the given
compilations in order with respect to the given environment. |
@NotNull public static final @NotNull Analyzer ANALYZER
@NotNull public static final @NotNull Processor ANALYZER_PROCESSOR
@NotNull public static final @NotNull Compiler COMPILER
@NotNull public static final @NotNull Processor COMPILER_PROCESSOR
@NotNull public static final @NotNull Parser PARSER
@NotNull public static final @NotNull Processor PARSER_PROCESSOR
@NotNull public static final @NotNull Processor PROCESSOR
@NotNull public static final @NotNull Initializer INITIALIZER
@Contract(mutates="param1,param2")
public static boolean compile(@NotNull
@NotNull Environment environment,
@Nullable
Document... documents)
documents to the given environment.
environment - the environment to compile to.documents - the documents to be compiled.documents was successfully compiled.java.lang.NullPointerException - if the given environment or documents
is null.public static boolean execute(@NotNull
@NotNull Environment environment,
@Nullable
Compilation... compilations)
compilations in order with respect to the given environment.
environment - the environment to execute on.compilations - the compilations to be executed (in order).compilations was successfully executed.java.lang.NullPointerException - if the given environment or compilations is null.@Contract(mutates="param1,param2")
public static boolean execute(@NotNull
@NotNull Environment environment,
@NotNull
@NotNull java.util.function.Function<Compilation,Memory> memorySupplier,
@Nullable
Compilation... compilations)
compilations in order with respect to the given environment.
environment - the environment to execute on.memorySupplier - a supplier used to create new memory instances.compilations - the compilations to be executed (in order).compilations was successfully executed.java.lang.NullPointerException - if the given environment or memorySupplier or compilations is null.