public class SimpleCompiler extends Object implements JavaCompiler
JavaCompiler.CompilationTask
Constructor and Description |
---|
SimpleCompiler() |
SimpleCompiler(JavaCompiler compiler,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
static String |
getClassPath(URLClassLoader cl) |
Set<SourceVersion> |
getSourceVersions() |
StandardJavaFileManager |
getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener,
Locale locale,
Charset charset) |
JavaCompiler.CompilationTask |
getTask(Writer out,
JavaFileManager fileManager,
DiagnosticListener<? super JavaFileObject> diagnosticListener,
Iterable<String> options,
Iterable<String> classes,
Iterable<? extends JavaFileObject> compilationUnits) |
int |
isSupportedOption(String option) |
protected static boolean |
isSureFireBooter(URLClassLoader cl) |
int |
run(InputStream in,
OutputStream out,
OutputStream err,
String... arguments) |
public SimpleCompiler()
public SimpleCompiler(JavaCompiler compiler, ClassLoader classLoader)
protected static boolean isSureFireBooter(URLClassLoader cl)
public static String getClassPath(URLClassLoader cl)
public Set<SourceVersion> getSourceVersions()
getSourceVersions
in interface Tool
public StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
getStandardFileManager
in interface JavaCompiler
public JavaCompiler.CompilationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)
getTask
in interface JavaCompiler
public int isSupportedOption(String option)
isSupportedOption
in interface OptionChecker
public int run(InputStream in, OutputStream out, OutputStream err, String... arguments)
Copyright © 2010–2018. All rights reserved.