Package org.apache.drill.exec.compile
Class AbstractClassCompiler
java.lang.Object
org.apache.drill.exec.compile.AbstractClassCompiler
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompile
(ClassTransformer.ClassNames className, String sourceCode) protected abstract byte[][]
getByteCode
(ClassTransformer.ClassNames className, String sourcecode) byte[][]
getClassByteCode
(ClassTransformer.ClassNames className, String sourceCode) protected abstract org.slf4j.Logger
protected String
prefixLineNumbers
(String code)
-
Field Details
-
debug
protected boolean debug
-
-
Method Details
-
getClassByteCode
public byte[][] getClassByteCode(ClassTransformer.ClassNames className, String sourceCode) throws org.codehaus.commons.compiler.CompileException, IOException, ClassNotFoundException, ClassTransformationException - Throws:
org.codehaus.commons.compiler.CompileException
IOException
ClassNotFoundException
ClassTransformationException
-
prefixLineNumbers
-
getByteCode
protected abstract byte[][] getByteCode(ClassTransformer.ClassNames className, String sourcecode) throws org.codehaus.commons.compiler.CompileException, IOException, ClassNotFoundException, ClassTransformationException - Throws:
org.codehaus.commons.compiler.CompileException
IOException
ClassNotFoundException
ClassTransformationException
-
compile
public abstract Map<String,byte[]> compile(ClassTransformer.ClassNames className, String sourceCode) throws org.codehaus.commons.compiler.CompileException, IOException, ClassNotFoundException - Throws:
org.codehaus.commons.compiler.CompileException
IOException
ClassNotFoundException
-
getLogger
protected abstract org.slf4j.Logger getLogger()
-