Package org.apache.camel.dsl.java.joor
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompilationUnit.ResultThe result of the compilation that holds mapping for each className -> class.
-
Constructor Summary
Constructors Constructor Description CompilationUnit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompilationUnitaddClass(String className, String content)Adds input to the compilation unit.static CompilationUnitinput()Creates a new compilation unit for holding input files.
-
-
-
Method Detail
-
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 namecontent- the source code for the class
-
-