Class MultiCompile

java.lang.Object
org.apache.camel.language.joor.MultiCompile

public final class MultiCompile extends Object
Until jOOR supports multi-file compilation, then we have the compiler at Apache Camel. See: https://github.com/jOOQ/jOOR/pull/119
  • Method Details

    • compileUnit

      public static CompilationUnit.Result compileUnit(CompilationUnit unit)
      Compiles multiple files as one unit
      Parameters:
      unit - the files to compile in the same unit
      Returns:
      the compilation result
    • compileUnit

      public static CompilationUnit.Result compileUnit(CompilationUnit unit, List<String> options)
      Compiles multiple files as one unit
      Parameters:
      unit - the files to compile in the same unit
      options - the compilation options to use
      Returns:
      the compilation result