public class ClassCompilerSelector extends Object
ClassCompilerSelector.CompilerPolicy enum.AbstractClassCompiler writes the
generated Java code to the log file prior to compilation. This option
adds line numbers to the logged code.| Modifier and Type | Class and Description |
|---|---|
static class |
ClassCompilerSelector.CompilerPolicy |
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_COMPILER_CONFIG |
static OptionValidator |
JAVA_COMPILER_DEBUG |
static String |
JAVA_COMPILER_DEBUG_CONFIG |
static String |
JAVA_COMPILER_DEBUG_OPTION |
static OptionValidator |
JAVA_COMPILER_JANINO_MAXSIZE |
static String |
JAVA_COMPILER_JANINO_MAXSIZE_CONFIG |
static String |
JAVA_COMPILER_JANINO_MAXSIZE_OPTION |
static String |
JAVA_COMPILER_OPTION |
static TypeValidators.StringValidator |
JAVA_COMPILER_VALIDATOR |
| Constructor and Description |
|---|
ClassCompilerSelector(ClassLoader classLoader,
DrillConfig config,
OptionSet sessionOptions) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,byte[]> |
compile(ClassTransformer.ClassNames className,
String sourceCode) |
public static final String JAVA_COMPILER_JANINO_MAXSIZE_CONFIG
public static final String JAVA_COMPILER_DEBUG_CONFIG
public static final String JAVA_COMPILER_CONFIG
public static final String JAVA_COMPILER_OPTION
public static final String JAVA_COMPILER_JANINO_MAXSIZE_OPTION
public static final OptionValidator JAVA_COMPILER_JANINO_MAXSIZE
public static final String JAVA_COMPILER_DEBUG_OPTION
public static final OptionValidator JAVA_COMPILER_DEBUG
public static final TypeValidators.StringValidator JAVA_COMPILER_VALIDATOR
public ClassCompilerSelector(ClassLoader classLoader, DrillConfig config, OptionSet sessionOptions)
public Map<String,byte[]> compile(ClassTransformer.ClassNames className, String sourceCode) throws org.codehaus.commons.compiler.CompileException, ClassNotFoundException, ClassTransformationException, IOException
org.codehaus.commons.compiler.CompileExceptionClassNotFoundExceptionClassTransformationExceptionIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.