Class CompilationUnit

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

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

    • CompilationUnit

      public CompilationUnit()
  • Method Details

    • input

      public static CompilationUnit input()
      Creates a new compilation unit for holding input files.
    • addClass

      public CompilationUnit addClass(String className, String content)
      Adds input to the compilation unit.
      Parameters:
      className - the class name
      content - the source code for the class
    • withClassLoader

      public CompilationUnit withClassLoader(ClassLoader classLoader)
      To use a custom classloader
    • getInput

      public Map<String,String> getInput()
    • getClassLoader

      public ClassLoader getClassLoader()
    • toString

      public String toString()
      Overrides:
      toString in class Object