Package org.apache.calcite.util.javac
Class JaninoCompiler.JaninoCompilerArgs
java.lang.Object
org.apache.calcite.util.javac.JavaCompilerArgs
org.apache.calcite.util.javac.JaninoCompiler.JaninoCompilerArgs
- Enclosing class:
JaninoCompiler
Arguments to an invocation of the Janino compiler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDestdir(String destdir) voidsetFullClassName(String fullClassName) voidSets the source code (that is, the full java program, generally starting with something like "package com.foo.bar;") and the file name.booleanReturns whetherJavaCompilerArgs.setSource(java.lang.String, java.lang.String)will work.Methods inherited from class org.apache.calcite.util.javac.JavaCompilerArgs
addFile, clear, getClassLoader, getFileNames, getStringArray, setClassLoader, setClasspath, setDebugInfo, setString, setStringArray, setVerbose
-
Constructor Details
-
JaninoCompilerArgs
public JaninoCompilerArgs()
-
-
Method Details
-
supportsSetSource
public boolean supportsSetSource()Description copied from class:JavaCompilerArgsReturns whetherJavaCompilerArgs.setSource(java.lang.String, java.lang.String)will work.- Overrides:
supportsSetSourcein classJavaCompilerArgs
-
setDestdir
- Overrides:
setDestdirin classJavaCompilerArgs
-
setSource
Description copied from class:JavaCompilerArgsSets the source code (that is, the full java program, generally starting with something like "package com.foo.bar;") and the file name.This method is optional. It only works if the compiler supports in-memory compilation. If this compiler does not return in-memory compilation (which the base class does not),
JavaCompilerArgs.supportsSetSource()returns false, and this method throwsUnsupportedOperationException.- Overrides:
setSourcein classJavaCompilerArgs
-
setFullClassName
- Overrides:
setFullClassNamein classJavaCompilerArgs
-