public static class JaninoCompiler.JaninoCompilerArgs extends JavaCompilerArgs
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
destdir |
(package private) java.lang.String |
fullClassName |
(package private) java.lang.String |
source |
argsList, classLoader, fileNameList
Constructor and Description |
---|
JaninoCompilerArgs() |
Modifier and Type | Method and 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 whether
JavaCompilerArgs.setSource(java.lang.String, java.lang.String) will work. |
addFile, clear, getClassLoader, getFileNames, getStringArray, setClassLoader, setClasspath, setDebugInfo, setString, setStringArray, setVerbose
java.lang.String destdir
java.lang.String fullClassName
java.lang.String source
public boolean supportsSetSource()
JavaCompilerArgs
JavaCompilerArgs.setSource(java.lang.String, java.lang.String)
will work.supportsSetSource
in class JavaCompilerArgs
public void setDestdir(java.lang.String destdir)
setDestdir
in class JavaCompilerArgs
public void setSource(java.lang.String source, java.lang.String fileName)
JavaCompilerArgs
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 throws
UnsupportedOperationException
.
setSource
in class JavaCompilerArgs
public void setFullClassName(java.lang.String fullClassName)
setFullClassName
in class JavaCompilerArgs
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.