Modifier and Type | Field and Description |
---|---|
JCTree.JCCompilationUnit |
Env.toplevel
The enclosing toplevel tree.
|
Modifier and Type | Method and Description |
---|---|
Symbol |
Attr.attribIdent(JCTree tree,
JCTree.JCCompilationUnit topLevel)
Attribute a parsed identifier.
|
Env<AttrContext> |
Enter.getTopLevelEnv(JCTree.JCCompilationUnit tree) |
void |
Enter.visitTopLevel(JCTree.JCCompilationUnit tree) |
void |
Flow.AbstractAssignAnalyzer.visitTopLevel(JCTree.JCCompilationUnit tree) |
void |
Lower.visitTopLevel(JCTree.JCCompilationUnit tree) |
void |
MemberEnter.visitTopLevel(JCTree.JCCompilationUnit tree) |
Modifier and Type | Method and Description |
---|---|
void |
Enter.complete(List<JCTree.JCCompilationUnit> trees,
Symbol.ClassSymbol c)
Main method: enter one class from a list of toplevel trees and
place the rest on uncompleted for later processing.
|
void |
Enter.main(List<JCTree.JCCompilationUnit> trees)
Main method: enter all classes in a list of toplevel trees.
|
Modifier and Type | Method and Description |
---|---|
JCTree.JCCompilationUnit |
JavaCompiler.parse(String filename)
Deprecated.
|
JCTree.JCCompilationUnit |
JavaCompiler.parse(JavaFileObject filename)
Parse contents of file.
|
protected JCTree.JCCompilationUnit |
JavaCompiler.parse(JavaFileObject filename,
CharSequence content)
Parse contents of input stream.
|
Modifier and Type | Method and Description |
---|---|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTrees(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees.
|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTreesIfNeeded(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees if the compilation
is expected to proceed beyond anno processing into attr.
|
List<JCTree.JCCompilationUnit> |
JavaCompiler.parseFiles(Iterable<JavaFileObject> fileObjects)
Parses a list of files.
|
Modifier and Type | Method and Description |
---|---|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTrees(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees.
|
List<JCTree.JCCompilationUnit> |
JavaCompiler.enterTreesIfNeeded(List<JCTree.JCCompilationUnit> roots)
Enter the symbols found in a list of parse trees if the compilation
is expected to proceed beyond anno processing into attr.
|
JavaCompiler |
JavaCompiler.processAnnotations(List<JCTree.JCCompilationUnit> roots) |
JavaCompiler |
JavaCompiler.processAnnotations(List<JCTree.JCCompilationUnit> roots,
List<String> classnames)
Process any annotations found in the specified compilation units.
|
Modifier and Type | Method and Description |
---|---|
Pair<JCTree,JCTree.JCCompilationUnit> |
JavacElements.getTreeAndTopLevel(Element e,
AnnotationMirror a,
AnnotationValue v)
Returns the best approximation for the tree node and compilation unit
corresponding to the given element, annotation and value.
|
Modifier and Type | Method and Description |
---|---|
JCTree.JCCompilationUnit |
JavacParser.parseCompilationUnit()
CompilationUnit = [ { "@" Annotation } PACKAGE Qualident ";"] {ImportDeclaration} {TypeDeclaration}
|
JCTree.JCCompilationUnit |
Parser.parseCompilationUnit()
Parse a compilation unit.
|
Modifier and Type | Method and Description |
---|---|
JavaCompiler |
JavacProcessingEnvironment.doProcessing(Context context,
List<JCTree.JCCompilationUnit> roots,
List<Symbol.ClassSymbol> classSymbols,
Iterable<? extends Symbol.PackageSymbol> pckSymbols,
Log.DeferredDiagnosticHandler deferredDiagnosticHandler) |
Modifier and Type | Field and Description |
---|---|
JCTree.JCCompilationUnit |
TreeMaker.toplevel
The toplevel tree to which created trees belong.
|
Modifier and Type | Method and Description |
---|---|
JCTree.JCCompilationUnit |
JCTree.Factory.TopLevel(List<JCTree.JCAnnotation> packageAnnotations,
JCTree.JCExpression pid,
List<JCTree> defs) |
JCTree.JCCompilationUnit |
TreeMaker.TopLevel(List<JCTree.JCAnnotation> packageAnnotations,
JCTree.JCExpression pid,
List<JCTree> defs)
Create given tree node at current position.
|
Modifier and Type | Method and Description |
---|---|
TreeMaker |
TreeMaker.forToplevel(JCTree.JCCompilationUnit toplevel)
Create a new tree maker for a given toplevel.
|
static List<JCTree> |
TreeInfo.pathFor(JCTree node,
JCTree.JCCompilationUnit unit) |
void |
Pretty.printUnit(JCTree.JCCompilationUnit tree,
JCTree.JCClassDecl cdef)
Print unit consisting of package clause and import statements in toplevel,
followed by class definition.
|
static Env<AttrContext> |
TreeInfo.scopeFor(JCTree node,
JCTree.JCCompilationUnit unit) |
void |
JCTree.Visitor.visitTopLevel(JCTree.JCCompilationUnit that) |
void |
Pretty.visitTopLevel(JCTree.JCCompilationUnit tree)
Visitor methods
|
void |
TreeScanner.visitTopLevel(JCTree.JCCompilationUnit tree) |
void |
TreeTranslator.visitTopLevel(JCTree.JCCompilationUnit tree) |
Constructor and Description |
---|
TreeMaker(JCTree.JCCompilationUnit toplevel,
Names names,
Types types,
Symtab syms)
Create a tree maker with a given toplevel and FIRSTPOS as initial position.
|
Copyright © 2017 earcam. All rights reserved.