Class MolangCompiler

java.lang.Object
team.unnamed.mocha.runtime.MolangCompiler

@Internal public final class MolangCompiler extends Object
  • Constructor Details

    • MolangCompiler

      public MolangCompiler(@Nullable @Nullable Object entity, @NotNull @NotNull ClassLoader classLoader, @NotNull @NotNull Scope scope)
  • Method Details

    • entity

      @Nullable public @Nullable Object entity()
    • classPool

      @NotNull public @NotNull javassist.ClassPool classPool()
    • postCompile

      public void postCompile(@Nullable @Nullable Consumer<byte @NotNull []> postCompile)
    • compile

      @NotNull public <T extends MochaCompiledFunction> T compile(@NotNull @NotNull List<Expression> expressions, @NotNull @NotNull Class<T> clazz)