public static class JaninoCompiler.JaninoCompilerArgs extends JavaCompilerArgs
| Constructor and Description |
|---|
JaninoCompiler.JaninoCompilerArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
setDestdir(String destdir) |
void |
setFullClassName(String fullClassName) |
void |
setSource(String source,
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, setVerbosepublic boolean supportsSetSource()
JavaCompilerArgsJavaCompilerArgs.setSource(java.lang.String, java.lang.String) will work.supportsSetSource in class JavaCompilerArgspublic void setDestdir(String destdir)
setDestdir in class JavaCompilerArgspublic void setSource(String source, String fileName)
JavaCompilerArgsThis 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 JavaCompilerArgspublic void setFullClassName(String fullClassName)
setFullClassName in class JavaCompilerArgsCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.