Class CompilationUnit

java.lang.Object
org.apache.camel.dsl.java.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