public interface Compilation
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
@NotNull Environment |
getEnvironment()
Return the environment this compilation is on.
|
@Nullable Instruction |
getInstruction()
Return the instruction set for this compilation.
|
@NotNull java.util.Map<java.lang.String,java.lang.Object> |
getMeta()
Returns the meta-data map of this compilation.
|
@NotNull Tree |
getRootTree()
Return the root tree of this compilation.
|
void |
setInstruction(@NotNull Instruction instruction)
Set the intrusion of the compilation to be the given
instruction . |
@NotNull @Contract(pure=true) @NotNull Environment getEnvironment()
@Nullable @Contract(pure=true) @Nullable Instruction getInstruction()
@NotNull @Contract(pure=true) @NotNull java.util.Map<java.lang.String,java.lang.Object> getMeta()
@NotNull @Contract(pure=true) @NotNull Tree getRootTree()
@Contract(mutates="this") void setInstruction(@NotNull @NotNull Instruction instruction)
instruction
. It is
expected pass an instruction resultant from compiling this compilation with a real
compiler. But, there is no additional checks to validate that. So, be nice and
follow the rules. Please?instruction
- the instruction to be set for this compilation.java.lang.NullPointerException
- if the given instruction
is null.