Method Summary |
|
public List<Env<AttrContext>> | attribute(ListBuffer<Env<AttrContext>> envs) Attribute a list of parse trees, such as found on the "todo" list. |
public Env<AttrContext> | attribute(Env<AttrContext> env) Attribute a parse tree. |
public void | close() |
public void | compile(List<JavaFileObject> sourceFileObject) |
public void | compile(List<JavaFileObject> sourceFileObjects, List<String> classnames, Iterable<? extends Processor> processors) |
public void | complete(ClassSymbol c) Complete compiling a source file that has been accessed
by the class file reader. |
public List<Pair<Env<AttrContext>, JCClassDecl>> | desugar(List<Env<AttrContext>> envs) Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation. |
protected void | desugar(Env<AttrContext> env, ListBuffer<Pair<Env<AttrContext>, JCClassDecl>> results) Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation. |
public boolean | desugarLater(Env<AttrContext> env) Determine if a class needs to be desugared later. |
public static void | enableLogging() |
public List<JCCompilationUnit> | enterTrees(List<JCCompilationUnit> roots) Enter the symbols found in a list of parse trees. |
public int | errorCount() The number of errors reported so far. |
boolean | explicitAnnotationProcessingRequested() |
public List<Env<AttrContext>> | flow(List<Env<AttrContext>> envs) Perform dataflow checks on attributed parse trees. |
public List<Env<AttrContext>> | flow(Env<AttrContext> env) Perform dataflow checks on an attributed parse tree. |
protected void | flow(Env<AttrContext> env, ListBuffer<Env<AttrContext>> results) Perform dataflow checks on an attributed parse tree. |
public static String | fullVersion() The current full version number as a string. |
JavaFileObject | genCode(Env<AttrContext> env, JCClassDecl cdef) |
public void | generate(List<Pair<Env<AttrContext>, JCClassDecl>> list) Generates the source or class file for a list of classes. |
public void | generate(List<Pair<Env<AttrContext>, JCClassDecl>> list, ListBuffer<JavaFileObject> results) |
protected Scanner.Factory | getScannerFactory() |
Map<JCCompilationUnit, List<Env<AttrContext>>> | groupByFile(List<Env<AttrContext>> list) |
public void | initProcessAnnotations(Iterable<? extends Processor> processors) Check if we should process annotations. |
public void | initRound(JavaCompiler prev) |
public static JavaCompiler | instance(Context context) Get the JavaCompiler instance for this context. |
protected boolean | keepComments() |
protected JCCompilationUnit | parse(JavaFileObject filename, CharSequence content) Parse contents of input stream. |
public JCTree.JCCompilationUnit | parse(String filename) Parse contents of file. |
public JCTree.JCCompilationUnit | parse(JavaFileObject filename) Parse contents of file. |
public boolean | parseErrors() Whether or not any parse errors have occurred. |
public List<JCCompilationUnit> | parseFiles(List<JavaFileObject> fileObjects) Parses a list of files. |
protected void | printCount(String kind, int count) Print numbers of errors and warnings. |
JavaFileObject | printSource(Env<AttrContext> env, JCClassDecl cdef) Emit plain Java source for a class. |
protected void | printVerbose(String key, Object arg) Output for "-verbose" option. |
public JavaCompiler | processAnnotations(List<JCCompilationUnit> roots) |
public JavaCompiler | processAnnotations(List<JCCompilationUnit> roots, List<String> classnames) Process any anotations found in the specifed compilation units. |
public CharSequence | readSource(JavaFileObject filename) Try to open input stream with given name. |
JCClassDecl | removeMethodBodies(JCClassDecl cdef) |
public void | reportDeferredDiagnostics() |
public Symbol | resolveIdent(String name) Resolve an identifier. |
final protected List<T> | stopIfError(ListBuffer<T> listBuffer) |
final protected List<T> | stopIfError(List<T> list) |
public static String | version() The current version number as a string. |
public int | warningCount() The number of warnings reported so far. |