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
public static class JaninoCompiler.JaninoCompilerArgs extends JavaCompilerArgs
Arguments to an invocation of the Janino compiler.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
destdir
(package private) java.lang.String
fullClassName
(package private) java.lang.String
source
-
Fields inherited from class org.apache.calcite.util.javac.JavaCompilerArgs
argsList, classLoader, fileNameList
-
-
Constructor Summary
Constructors Constructor Description JaninoCompilerArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDestdir(java.lang.String destdir)
void
setFullClassName(java.lang.String fullClassName)
void
setSource(java.lang.String source, java.lang.String fileName)
Sets the source code (that is, the full java program, generally starting with something like "package com.foo.bar;") and the file name.boolean
supportsSetSource()
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
-
-
-
-
Method Detail
-
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
public void setDestdir(java.lang.String destdir)
- Overrides:
setDestdir
in classJavaCompilerArgs
-
setSource
public void setSource(java.lang.String source, java.lang.String fileName)
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
public void setFullClassName(java.lang.String fullClassName)
- Overrides:
setFullClassName
in classJavaCompilerArgs
-
-