Package team.unnamed.mocha.runtime
Class MolangCompiler
java.lang.Object
team.unnamed.mocha.runtime.MolangCompiler
-
Constructor Summary
ConstructorsConstructorDescriptionMolangCompiler(@Nullable Object entity, @NotNull ClassLoader classLoader, @NotNull Scope scope) -
Method Summary
Modifier and TypeMethodDescription@NotNull javassist.ClassPool<T extends MochaCompiledFunction>
Tcompile(@NotNull List<Expression> expressions, @NotNull Class<T> clazz) @Nullable Objectentity()voidpostCompile(@Nullable Consumer<byte @NotNull []> postCompile)
-
Constructor Details
-
MolangCompiler
public MolangCompiler(@Nullable @Nullable Object entity, @NotNull @NotNull ClassLoader classLoader, @NotNull @NotNull Scope scope)
-
-
Method Details
-
entity
-
classPool
@NotNull public @NotNull javassist.ClassPool classPool() -
postCompile
-
compile
@NotNull public <T extends MochaCompiledFunction> T compile(@NotNull @NotNull List<Expression> expressions, @NotNull @NotNull Class<T> clazz)
-