use of org.codehaus.janino.UnitCompiler in project drill by apache.
the class JaninoClassCompiler method doCompile.
private ClassFile[] doCompile(final String sourceCode) throws CompileException, IOException, ClassNotFoundException {
StringReader reader = new StringReader(sourceCode);
Scanner scanner = new Scanner((String) null, reader);
Java.CompilationUnit compilationUnit = new Parser(scanner).parseCompilationUnit();
return new UnitCompiler(compilationUnit, compilationClassLoader).compileUnit(this.debug, this.debug, this.debug);
}
Aggregations