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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setDestdir
(String destdir) void
setFullClassName
(String fullClassName) void
Sets the source code (that is, the full java program, generally starting with something like "package com.foo.bar;") and the file name.boolean
Returns 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:JavaCompilerArgs
Returns whetherJavaCompilerArgs.setSource(java.lang.String, java.lang.String)
will work.- Overrides:
supportsSetSource
in classJavaCompilerArgs
-
setDestdir
- Overrides:
setDestdir
in classJavaCompilerArgs
-
setSource
Description copied from class:JavaCompilerArgs
Sets 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:
setSource
in classJavaCompilerArgs
-
setFullClassName
- Overrides:
setFullClassName
in classJavaCompilerArgs
-