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 Toolpublic StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
getStandardFileManager in interface JavaCompilerpublic JavaCompiler.CompilationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)
getTask in interface JavaCompilerpublic int isSupportedOption(String option)
isSupportedOption in interface OptionCheckerpublic int run(InputStream in, OutputStream out, OutputStream err, String... arguments)
Copyright © 2010–2015 Mysema Ltd. All rights reserved.