public class Compiler extends Object
Constructor and Description |
---|
Compiler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArgs(List<String> list) |
boolean |
compileFiles(File[] files) |
boolean |
compileFiles(List<File> files) |
boolean |
compileFiles(String[] files) |
List<String> |
getErrors() |
List<String> |
getWarnings() |
boolean |
internalCompile(String[] args,
int sourceFileIndex) |
protected boolean |
internalJava6Compile(JavaCompiler compiler,
JavaFileManager fileManager,
DiagnosticListener<JavaFileObject> listener,
Iterable<? extends JavaFileObject> fileList) |
void |
setClassPath(String s) |
void |
setEncoding(String string) |
void |
setMaxMemory(long l) |
void |
setOutputDir(File s) |
void |
setOutputDir(String s) |
void |
setTarget(String s) |
protected DiagnosticListener<JavaFileObject> |
setupDiagnosticListener() |
void |
setVerbose(boolean b) |
protected boolean |
useJava6Compiler(String[] files) |
protected JavaFileManager |
wrapJavaFileManager(StandardJavaFileManager standardJavaFileManger) |
public void setMaxMemory(long l)
public void setVerbose(boolean b)
public void setTarget(String s)
public void setOutputDir(File s)
public void setOutputDir(String s)
public void setClassPath(String s)
public boolean compileFiles(File[] files)
public boolean compileFiles(String[] files)
protected boolean useJava6Compiler(String[] files)
protected JavaFileManager wrapJavaFileManager(StandardJavaFileManager standardJavaFileManger)
protected DiagnosticListener<JavaFileObject> setupDiagnosticListener()
protected boolean internalJava6Compile(JavaCompiler compiler, JavaFileManager fileManager, DiagnosticListener<JavaFileObject> listener, Iterable<? extends JavaFileObject> fileList)
public boolean internalCompile(String[] args, int sourceFileIndex)
public void setEncoding(String string)
Copyright © 2018 JBoss by Red Hat. All rights reserved.