Package | Description |
---|---|
com.sun.tools.javac.api | |
com.sun.tools.javac.comp | |
com.sun.tools.javac.jvm | |
com.sun.tools.javac.model | |
com.sun.tools.javac.parser | |
com.sun.tools.javac.tree | |
com.sun.tools.javac.util |
Modifier and Type | Method and Description |
---|---|
<T extends JCTree> |
JavacTrees.Copier.copy(T t,
JCTree leaf) |
Modifier and Type | Method and Description |
---|---|
JCTree |
JavacTrees.getTree(Element element) |
JCTree |
JavacTrees.getTree(Element e,
AnnotationMirror a) |
JCTree |
JavacTrees.getTree(Element e,
AnnotationMirror a,
AnnotationValue v) |
Modifier and Type | Method and Description |
---|---|
<T extends JCTree> |
JavacTrees.Copier.copy(T t,
JCTree leaf) |
Modifier and Type | Field and Description |
---|---|
JCTree |
Env.tree
The tree with which this environment is associated.
|
Modifier and Type | Field and Description |
---|---|
Map<Symbol.ClassSymbol,List<JCTree>> |
Lower.prunedTree
A hash table mapping local classes to a list of pruned trees.
|
Modifier and Type | Method and Description |
---|---|
<T extends JCTree> |
Lower.translate(List<T> trees,
JCTree.JCExpression enclOp)
Visitor method: Translate list of trees.
|
<T extends JCTree> |
TransTypes.translate(List<T> trees,
Type pt)
Visitor method: perform a type translation on list of trees.
|
<T extends JCTree> |
Lower.translate(List<T> trees,
Type type)
Visitor method: Translate list of trees.
|
<T extends JCTree> |
Lower.translate(T tree)
Visitor method: Translate a single node.
|
<T extends JCTree> |
LambdaToMethod.translate(T tree) |
<T extends JCTree> |
Lower.translate(T tree,
JCTree.JCExpression enclOp)
Visitor method: Translate tree.
|
<T extends JCTree> |
TransTypes.translate(T tree,
Type pt)
Visitor method: perform a type translation on tree.
|
<T extends JCTree> |
Lower.translate(T tree,
Type type)
Visitor method: Translate a single node, boxing or unboxing if needed.
|
<T extends JCTree> |
TransTypes.translateArgs(List<T> _args,
List<Type> parameters,
Type varargsElement,
Env<AttrContext> localEnv) |
Modifier and Type | Method and Description |
---|---|
JCTree |
LambdaToMethod.translateTopLevelClass(Env<AttrContext> env,
JCTree cdef,
TreeMaker make) |
JCTree |
TransTypes.translateTopLevelClass(JCTree cdef,
TreeMaker make)
Translate a toplevel class definition.
|
JCTree |
Lower.visitEnumSwitch(JCTree.JCSwitch tree) |
JCTree |
Lower.visitStringSwitch(JCTree.JCSwitch tree) |
Modifier and Type | Method and Description |
---|---|
List<JCTree> |
Lower.translateTopLevelClass(Env<AttrContext> env,
JCTree cdef,
TreeMaker make)
Translate a toplevel class and return a list consisting of
the translated class and translated versions of all inner classes.
|
Modifier and Type | Method and Description |
---|---|
void |
Flow.AbstractAssignAnalyzer.analyzeTree(Env<?> env,
JCTree tree) |
protected void |
Flow.AbstractAssignAnalyzer.andSetInits(JCTree tree,
Bits bits) |
void |
Attr.annotateType(JCTree tree,
List<JCTree.JCAnnotation> annotations)
Apply the annotations to the particular type.
|
protected void |
Flow.AbstractAssignAnalyzer.assignToInits(JCTree tree,
Bits bits) |
Type |
Attr.attribExpr(JCTree tree,
Env<AttrContext> env)
Derived visitor method: attribute an expression tree with
no constraints on the computed type.
|
Type |
Attr.attribExpr(JCTree tree,
Env<AttrContext> env,
Type pt)
Derived visitor method: attribute an expression tree.
|
Env<AttrContext> |
Attr.attribExprToTree(JCTree expr,
Env<AttrContext> env,
JCTree tree) |
Symbol |
Attr.attribIdent(JCTree tree,
JCTree.JCCompilationUnit topLevel)
Attribute a parsed identifier.
|
Type |
Attr.attribStat(JCTree tree,
Env<AttrContext> env)
Derived visitor method: attribute a statement or definition tree.
|
Env<AttrContext> |
Attr.attribStatToTree(JCTree stmt,
Env<AttrContext> env,
JCTree tree) |
Type |
Attr.attribType(JCTree tree,
Env<AttrContext> env)
Derived visitor method: attribute a type tree.
|
Type |
Attr.attribType(JCTree node,
Symbol.TypeSymbol sym) |
void |
Check.checkCanonical(JCTree tree)
Check that a qualified name is in canonical form (for import decls).
|
protected P |
Flow.AbstractAssignAnalyzer.createNewPendingExit(JCTree tree,
Bits inits,
Bits uninits) |
protected Flow.AssignAnalyzer.AssignPendingExit |
Flow.AssignAnalyzer.createNewPendingExit(JCTree tree,
Bits inits,
Bits uninits) |
Env<A> |
Env.dup(JCTree tree)
Duplicate this environment, updating with given tree,
and copying all other fields.
|
Env<A> |
Env.dup(JCTree tree,
A info)
Duplicate this environment, updating with given tree and info,
and copying all other fields.
|
protected void |
Flow.AbstractAssignAnalyzer.exclVarFromInits(JCTree tree,
int adr) |
void |
Resolve.logAccessErrorInternal(Env<AttrContext> env,
JCTree tree,
Type type) |
protected void |
Flow.AbstractAssignAnalyzer.markDead(JCTree tree) |
protected void |
MemberEnter.memberEnter(JCTree tree,
Env<AttrContext> env)
Enter field and method definitions and process import
clauses, catching any completion failure exceptions.
|
protected void |
Flow.AbstractAssignAnalyzer.merge(JCTree tree)
Merge (intersect) inits/uninits from WhenTrue/WhenFalse sets.
|
boolean |
MemberEnter.needsLazyConstValue(JCTree tree) |
protected void |
Flow.AbstractAssignAnalyzer.orSetInits(JCTree tree,
Bits bits) |
void |
Attr.postAttr(JCTree tree)
Handle missing types/symbols in an AST.
|
void |
Flow.AbstractAssignAnalyzer.AbstractAssignPendingExit.resolveJump(JCTree tree) |
List<JCTree> |
Lower.translateTopLevelClass(Env<AttrContext> env,
JCTree cdef,
TreeMaker make)
Translate a toplevel class and return a list consisting of
the translated class and translated versions of all inner classes.
|
JCTree |
LambdaToMethod.translateTopLevelClass(Env<AttrContext> env,
JCTree cdef,
TreeMaker make) |
JCTree |
TransTypes.translateTopLevelClass(JCTree cdef,
TreeMaker make)
Translate a toplevel class definition.
|
void |
MemberEnter.typeAnnotate(JCTree tree,
Env<AttrContext> env,
Symbol sym,
JCDiagnostic.DiagnosticPosition deferPos) |
void |
Attr.validateTypeAnnotations(JCTree tree,
boolean sigOnly) |
void |
Attr.visitTree(JCTree tree)
Default visitor method for all other trees.
|
void |
Enter.visitTree(JCTree tree)
Default class enter visitor method: do nothing.
|
void |
MemberEnter.visitTree(JCTree tree)
Default member enter visitor method: do nothing
|
Constructor and Description |
---|
AbstractAssignPendingExit(JCTree tree,
Bits inits,
Bits uninits) |
AssignPendingExit(JCTree tree,
Bits inits,
Bits uninits) |
AttrContextEnv(JCTree tree,
AttrContext info)
Create an outermost environment for a given (toplevel)tree,
with a given info field.
|
Env(JCTree tree,
A info)
Create an outermost environment for a given (toplevel)tree,
with a given info field.
|
Modifier and Type | Field and Description |
---|---|
protected Map<Symbol.MethodSymbol,Map<JCTree,List<Symbol.VarSymbol>>> |
LVTRanges.aliveRangeClosingTrees |
Modifier and Type | Method and Description |
---|---|
void |
Code.closeAliveRanges(JCTree tree) |
void |
Code.closeAliveRanges(JCTree tree,
int closingCP) |
boolean |
LVTRanges.containsKey(Symbol.MethodSymbol method,
JCTree tree) |
com.sun.tools.javac.jvm.Items.CondItem |
Gen.genCond(JCTree _tree,
boolean markBranches)
Derived visitor method: generate code for a boolean
expression in a control-flow context.
|
com.sun.tools.javac.jvm.Items.CondItem |
Gen.genCond(JCTree tree,
int crtFlags)
Derived visitor method: check whether CharacterRangeTable
should be emitted, if so, put a new entry into CRTable
and call method to generate bytecode.
|
void |
Gen.genDef(JCTree tree,
Env<com.sun.tools.javac.jvm.Gen.GenContext> env)
Visitor method: generate code for a definition, catching and reporting
any completion failures.
|
com.sun.tools.javac.jvm.Items.Item |
Gen.genExpr(JCTree tree,
Type pt)
Visitor method: generate code for an expression, catching and reporting
any completion failures.
|
void |
Gen.genStat(JCTree tree,
Env<com.sun.tools.javac.jvm.Gen.GenContext> env)
Derived visitor method: generate code for a statement.
|
void |
Gen.genStat(JCTree tree,
Env<com.sun.tools.javac.jvm.Gen.GenContext> env,
int crtFlags)
Derived visitor method: check whether CharacterRangeTable
should be emitted, if so, put a new entry into CRTable
and call method to generate bytecode.
|
List<Symbol.VarSymbol> |
LVTRanges.getVars(Symbol.MethodSymbol method,
JCTree tree) |
List<Symbol.VarSymbol> |
LVTRanges.removeEntry(Symbol.MethodSymbol method,
JCTree tree) |
void |
LVTRanges.setEntry(Symbol.MethodSymbol method,
JCTree tree,
List<Symbol.VarSymbol> vars) |
Modifier and Type | Method and Description |
---|---|
void |
Gen.genStats(List<? extends JCTree> trees,
Env<com.sun.tools.javac.jvm.Gen.GenContext> env)
Derived visitor method: generate code for a list of statements.
|
Modifier and Type | Method and Description |
---|---|
JCTree |
JavacElements.getTree(Element e)
Returns the tree node corresponding to this element, or null
if none can be found.
|
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 |
---|---|
protected <T extends JCTree> |
JavacParser.SimpleEndPosTable.to(T t) |
protected <T extends JCTree> |
JavacParser.EmptyEndPosTable.to(T t) |
protected abstract <T extends JCTree> |
JavacParser.AbstractEndPosTable.to(T t)
Store current token's ending position for a tree, the value of which
will be the greater of last error position and the ending position of
the current token.
|
protected <T extends JCTree> |
JavacParser.SimpleEndPosTable.toP(T t) |
protected <T extends JCTree> |
JavacParser.EmptyEndPosTable.toP(T t) |
protected abstract <T extends JCTree> |
JavacParser.AbstractEndPosTable.toP(T t)
Store current token's ending position for a tree, the value of which
will be the greater of last error position and the ending position of
the previous token.
|
Modifier and Type | Method and Description |
---|---|
protected JCTree |
JavacParser.methodDeclaratorRest(int pos,
JCTree.JCModifiers mods,
JCTree.JCExpression type,
Name name,
List<JCTree.JCTypeParameter> typarams,
boolean isInterface,
boolean isVoid,
Tokens.Comment dc)
MethodDeclaratorRest =
FormalParameters BracketsOpt [Throws TypeList] ( MethodBody | [DEFAULT AnnotationValue] ";")
VoidMethodDeclaratorRest =
FormalParameters [Throws TypeList] ( MethodBody | ";")
InterfaceMethodDeclaratorRest =
FormalParameters BracketsOpt [THROWS TypeList] ";"
VoidInterfaceMethodDeclaratorRest =
FormalParameters [THROWS TypeList] ";"
ConstructorDeclaratorRest =
"(" FormalParameterListOpt ")" [THROWS TypeList] MethodBody
|
protected JCTree |
JavacParser.resource()
Resource = VariableModifiersOpt Type VariableDeclaratorId = Expression
|
Modifier and Type | Method and Description |
---|---|
protected List<JCTree> |
JavacParser.classOrInterfaceBodyDeclaration(Name className,
boolean isInterface)
ClassBodyDeclaration =
";"
| [STATIC] Block
| ModifiersOpt
( Type Ident
( VariableDeclaratorsRest ";" | MethodDeclaratorRest )
| VOID Ident MethodDeclaratorRest
| TypeParameters (Type | VOID) Ident MethodDeclaratorRest
| Ident ConstructorDeclaratorRest
| TypeParameters Ident ConstructorDeclaratorRest
| ClassOrInterfaceOrEnumDeclaration
)
InterfaceBodyDeclaration =
";"
| ModifiersOpt Type Ident
( ConstantDeclaratorsRest | InterfaceMethodDeclaratorRest ";" )
|
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
JavacParser.foldStrings(JCTree tree)
If tree is a concatenation of string literals, replace it
by a single literal representing the concatenated string.
|
Tokens.Comment |
LazyDocCommentTable.getComment(JCTree tree) |
String |
LazyDocCommentTable.getCommentText(JCTree tree) |
DCTree.DCDocComment |
LazyDocCommentTable.getCommentTree(JCTree tree) |
int |
JavacParser.getEndPos(JCTree tree)
Get the end position for a tree node.
|
int |
JavacParser.SimpleEndPosTable.getEndPos(JCTree tree) |
int |
JavacParser.EmptyEndPosTable.getEndPos(JCTree tree) |
int |
JavacParser.getStartPos(JCTree tree)
Get the start position for a tree node.
|
boolean |
LazyDocCommentTable.hasComment(JCTree tree) |
void |
LazyDocCommentTable.putComment(JCTree tree,
Tokens.Comment c) |
int |
JavacParser.SimpleEndPosTable.replaceTree(JCTree oldTree,
JCTree newTree) |
int |
JavacParser.EmptyEndPosTable.replaceTree(JCTree oldTree,
JCTree newTree) |
void |
JavacParser.SimpleEndPosTable.storeEnd(JCTree tree,
int endpos) |
void |
JavacParser.EmptyEndPosTable.storeEnd(JCTree tree,
int endpos) |
Modifier and Type | Class and Description |
---|---|
static class |
JCTree.JCAnnotatedType |
static class |
JCTree.JCAnnotation |
static class |
JCTree.JCArrayAccess
An array selection
|
static class |
JCTree.JCArrayTypeTree
An array type, A[]
|
static class |
JCTree.JCAssert
An assert statement.
|
static class |
JCTree.JCAssign
A assignment with "=".
|
static class |
JCTree.JCAssignOp
An assignment with "+=", "|=" ...
|
static class |
JCTree.JCBinary
A binary operation.
|
static class |
JCTree.JCBlock
A statement block.
|
static class |
JCTree.JCBreak
A break from a loop or switch.
|
static class |
JCTree.JCCase
A "case :" of a switch.
|
static class |
JCTree.JCCatch
A catch block.
|
static class |
JCTree.JCClassDecl
A class definition.
|
static class |
JCTree.JCCompilationUnit
Everything in one source file is kept in a JCTree.JCCompilationUnit structure.
|
static class |
JCTree.JCConditional
A ( ) ? ( ) : ( ) conditional expression
|
static class |
JCTree.JCContinue
A continue of a loop.
|
static class |
JCTree.JCDoWhileLoop
A do loop
|
static class |
JCTree.JCEnhancedForLoop
The enhanced for loop.
|
static class |
JCTree.JCErroneous |
static class |
JCTree.JCExpression |
static class |
JCTree.JCExpressionStatement
an expression statement
|
static class |
JCTree.JCFieldAccess
Selects through packages and classes
|
static class |
JCTree.JCForLoop
A for loop.
|
static class |
JCTree.JCFunctionalExpression
Common supertype for all functional expression trees (lambda and method references)
|
static class |
JCTree.JCIdent
An identifier
|
static class |
JCTree.JCIf
An "if ( ) { } else { }" block
|
static class |
JCTree.JCImport
An import clause.
|
static class |
JCTree.JCInstanceOf
A type test.
|
static class |
JCTree.JCLabeledStatement
A labelled expression or statement.
|
static class |
JCTree.JCLambda
A lambda expression.
|
static class |
JCTree.JCLiteral
A constant value given literally.
|
static class |
JCTree.JCMemberReference
Selects a member expression.
|
static class |
JCTree.JCMethodDecl
A method definition.
|
static class |
JCTree.JCMethodInvocation
A method invocation
|
static class |
JCTree.JCModifiers |
static class |
JCTree.JCNewArray
A new[...] operation.
|
static class |
JCTree.JCNewClass
A new(...) operation.
|
static class |
JCTree.JCParens
A parenthesized subexpression ( ...
|
static class |
JCTree.JCPolyExpression
Common supertype for all poly expression trees (lambda, method references,
conditionals, method and constructor calls)
|
static class |
JCTree.JCPrimitiveTypeTree
Identifies a basic type.
|
static class |
JCTree.JCReturn
A return statement.
|
static class |
JCTree.JCSkip
A no-op statement ";".
|
static class |
JCTree.JCStatement |
static class |
JCTree.JCSwitch
A "switch ( ) { }" construction.
|
static class |
JCTree.JCSynchronized
A synchronized block.
|
static class |
JCTree.JCThrow
A throw statement.
|
static class |
JCTree.JCTry
A "try { } catch ( ) { } finally { }" block.
|
static class |
JCTree.JCTypeApply
A parameterized type, T<...>
|
static class |
JCTree.JCTypeCast
A type cast.
|
static class |
JCTree.JCTypeIntersection
An intersection type, T1 & T2 & ...
|
static class |
JCTree.JCTypeParameter
A formal class parameter.
|
static class |
JCTree.JCTypeUnion
A union type, T1 | T2 | ...
|
static class |
JCTree.JCUnary
A unary operation.
|
static class |
JCTree.JCVariableDecl
A variable definition.
|
static class |
JCTree.JCWhileLoop
A while loop
|
static class |
JCTree.JCWildcard |
static class |
JCTree.LetExpr
(let int x = 3; in x+2)
|
static class |
JCTree.TypeBoundKind |
Modifier and Type | Field and Description |
---|---|
JCTree |
JCTree.JCAnnotation.annotationType |
JCTree |
JCTree.JCLambda.body |
JCTree |
JCTree.JCTypeCast.clazz |
JCTree |
JCTree.JCInstanceOf.clazz |
JCTree |
JCTree.LetExpr.expr |
JCTree |
JCTree.JCWildcard.inner |
JCTree |
JCTree.JCImport.qualid
The imported class(es).
|
JCTree |
DCTree.DCReference.qualifierExpression |
protected JCTree |
TreeTranslator.result
Visitor result field: a tree
|
JCTree |
JCTree.JCBreak.target |
JCTree |
JCTree.JCContinue.target |
Modifier and Type | Field and Description |
---|---|
List<JCTree> |
JCTree.JCCompilationUnit.defs
All definitions in this file (ClassDef, Import, and Skip)
|
List<JCTree> |
JCTree.JCClassDecl.defs
all variables and methods defined in this class
|
List<? extends JCTree> |
JCTree.JCErroneous.errs |
List<JCTree> |
DCTree.DCReference.paramTypes |
List<JCTree> |
JCTree.JCTry.resources |
Modifier and Type | Method and Description |
---|---|
<T extends JCTree> |
TreeCopier.copy(List<T> trees) |
<T extends JCTree> |
TreeCopier.copy(List<T> trees,
P p) |
<T extends JCTree> |
TreeCopier.copy(T tree) |
<T extends JCTree> |
TreeCopier.copy(T tree,
P p) |
<T extends JCTree> |
Pretty.printExprs(List<T> trees)
Derived visitor method: print list of expression trees, separated by commas.
|
<T extends JCTree> |
Pretty.printExprs(List<T> trees,
String sep)
Derived visitor method: print list of expression trees, separated by given string.
|
<T extends JCTree> |
TreeTranslator.translate(List<T> trees)
Visitor method: translate a list of nodes.
|
<T extends JCTree> |
TreeTranslator.translate(T tree)
Visitor method: Translate a single node.
|
Modifier and Type | Method and Description |
---|---|
List<? extends JCTree> |
JCTree.JCErroneous.getErrorTrees() |
List<JCTree> |
JCTree.JCClassDecl.getMembers() |
List<JCTree> |
JCTree.JCTry.getResources() |
List<JCTree> |
JCTree.JCCompilationUnit.getTypeDecls() |
static List<JCTree> |
TreeInfo.pathFor(JCTree node,
JCTree.JCCompilationUnit unit) |
Modifier and Type | Method and Description |
---|---|
JCTree.JCAnnotation |
TreeMaker.Annotation(JCTree annotationType,
List<JCTree.JCExpression> args) |
JCTree.JCAnnotation |
JCTree.Factory.Annotation(JCTree annotationType,
List<JCTree.JCExpression> args) |
static List<JCTree.JCExpression> |
TreeInfo.args(JCTree t) |
JCTree.JCAssignOp |
TreeMaker.Assignop(JCTree.Tag opcode,
JCTree lhs,
JCTree rhs) |
JCTree.JCAssignOp |
JCTree.Factory.Assignop(JCTree.Tag opcode,
JCTree lhs,
JCTree rhs) |
static Name |
TreeInfo.calledMethodName(JCTree tree)
If the expression is a method call, return the method name, null
otherwise.
|
static boolean |
TreeInfo.containsTypeAnnotation(JCTree e) |
static JCTree |
TreeInfo.declarationFor(Symbol sym,
JCTree tree)
Find the declaration for a symbol, where
that symbol is defined somewhere in the given tree.
|
static JCDiagnostic.DiagnosticPosition |
TreeInfo.diagEndPos(JCTree tree)
A DiagnosticPosition with the preferred position set to the
end position of given tree, if it is a block with
defined endpos.
|
static JCDiagnostic.DiagnosticPosition |
TreeInfo.diagnosticPositionFor(Symbol sym,
JCTree tree)
Find the position for reporting an error about a symbol, where
that symbol is defined somewhere in the given tree.
|
static int |
TreeInfo.endPos(JCTree tree)
The end position of given tree, if it is a block with
defined endpos.
|
static int |
TreeInfo.finalizerPos(JCTree tree)
The position of the finalizer of given try/synchronized statement.
|
static JCTree.JCMethodInvocation |
TreeInfo.firstConstructorCall(JCTree tree)
Return the first call in a constructor definition.
|
static int |
TreeInfo.firstStatPos(JCTree tree)
The position of the first statement in a block, or the position of
the block itself if it is empty.
|
static long |
TreeInfo.flags(JCTree tree)
If this tree is a declaration or a block, return its flags field,
otherwise return 0.
|
static Name |
TreeInfo.fullName(JCTree tree)
If this tree is a qualified identifier, its return fully qualified name,
otherwise return null.
|
Tokens.Comment |
DocCommentTable.getComment(JCTree tree)
Get the Comment token containing the doc comment, if any, for a tree node.
|
static String |
TreeInfo.getCommentText(Env<?> env,
JCTree tree) |
String |
DocCommentTable.getCommentText(JCTree tree)
Get the plain text of the doc comment, if any, for a tree node.
|
static DCTree.DCDocComment |
TreeInfo.getCommentTree(Env<?> env,
JCTree tree) |
DCTree.DCDocComment |
DocCommentTable.getCommentTree(JCTree tree)
Get the parsed form of the doc comment as a DocTree.
|
int |
EndPosTable.getEndPos(JCTree tree)
This method will return the end position of a given tree, otherwise a
Positions.NOPOS will be returned.
|
static int |
TreeInfo.getEndPos(JCTree tree,
EndPosTable endPosTable)
The end position of given tree, given a table of end positions generated by the parser
|
static int |
TreeInfo.getStartPos(JCTree tree)
Get the start position for a tree node.
|
boolean |
DocCommentTable.hasComment(JCTree tree)
Check if a tree node has a corresponding doc comment.
|
JCTree.JCImport |
TreeMaker.Import(JCTree qualid,
boolean importStatic) |
JCTree.JCImport |
JCTree.Factory.Import(JCTree qualid,
boolean staticImport) |
static JCTree |
TreeInfo.innermostType(JCTree type) |
static boolean |
TreeInfo.isConstructor(JCTree tree)
Is tree a constructor declaration?
|
static boolean |
TreeInfo.isDeclaration(JCTree node) |
static boolean |
TreeInfo.isDiamond(JCTree tree)
Return true if a tree represents a diamond new expr.
|
static boolean |
TreeInfo.isEnumInit(JCTree tree) |
static boolean |
TreeInfo.isInitialConstructor(JCTree tree)
Is this a constructor whose first (non-synthetic) statement is not
of the form this(...)?
|
static boolean |
TreeInfo.isNull(JCTree tree)
Return true if a tree represents the null literal.
|
static boolean |
TreeInfo.isSelfCall(JCTree tree)
Is this a call to this or super?
|
static boolean |
TreeInfo.isStaticSelector(JCTree base,
Names names)
Return true if the AST corresponds to a static select of the kind A.B
|
static boolean |
TreeInfo.isSuperCall(JCTree tree)
Is this a call to super?
|
static boolean |
TreeInfo.isSyntheticInit(JCTree stat)
Is statement an initializer for a synthetic field?
|
JCTree.JCLambda |
TreeMaker.Lambda(List<JCTree.JCVariableDecl> params,
JCTree body) |
JCTree.LetExpr |
TreeMaker.LetExpr(JCTree.JCVariableDecl def,
JCTree expr) |
JCTree.LetExpr |
TreeMaker.LetExpr(List<JCTree.JCVariableDecl> defs,
JCTree expr) |
JCTree.LetExpr |
JCTree.Factory.LetExpr(List<JCTree.JCVariableDecl> defs,
JCTree expr) |
static Name |
TreeInfo.name(JCTree tree)
If this tree is an identifier or a field or a parameterized type,
return its name, otherwise return null.
|
static boolean |
TreeInfo.nonstaticSelect(JCTree tree)
Return true if this is a nonstatic selection.
|
static List<JCTree> |
TreeInfo.pathFor(JCTree node,
JCTree.JCCompilationUnit unit) |
static int |
TreeInfo.positionFor(Symbol sym,
JCTree tree)
Find the position for reporting an error about a symbol, where
that symbol is defined somewhere in the given tree.
|
void |
Pretty.printDocComment(JCTree tree)
Print documentation comment, if it exists
|
void |
Pretty.printExpr(JCTree tree)
Derived visitor method: print expression tree at minimum precedence level
for expression.
|
void |
Pretty.printExpr(JCTree tree,
int prec)
Visitor method: print expression tree.
|
void |
Pretty.printStat(JCTree tree)
Derived visitor method: print statement tree.
|
void |
DocCommentTable.putComment(JCTree tree,
Tokens.Comment c)
Set the Comment to be associated with a tree node.
|
DCTree.DCReference |
DocTreeMaker.Reference(String signature,
JCTree qualExpr,
Name member,
List<JCTree> paramTypes) |
int |
EndPosTable.replaceTree(JCTree oldtree,
JCTree newtree)
Give an old tree and a new tree, the old tree will be replaced with
the new tree, the position of the new tree will be that of the old
tree.
|
void |
TreeScanner.scan(JCTree tree)
Visitor method: Scan a single node.
|
static Env<AttrContext> |
TreeInfo.scopeFor(JCTree node,
JCTree.JCCompilationUnit unit) |
static void |
TreeInfo.setPolyKind(JCTree tree,
JCTree.JCPolyExpression.PolyKind pkind)
set 'polyKind' on given tree
|
static void |
TreeInfo.setSymbol(JCTree tree,
Symbol sym)
If this tree is an identifier or a field, set its symbol, otherwise skip.
|
static void |
TreeInfo.setVarargsElement(JCTree tree,
Type varargsElement)
set 'varargsElement' on given tree
|
static JCTree |
TreeInfo.skipParens(JCTree tree)
Skip parens and return the enclosed expression
|
void |
EndPosTable.storeEnd(JCTree tree,
int endpos)
Store ending position for a tree, the value of which is the greater of
last error position and the given ending position.
|
static Symbol |
TreeInfo.symbol(JCTree tree)
If this tree is an identifier or a field, return its symbol,
otherwise return null.
|
static Symbol |
TreeInfo.symbolFor(JCTree node) |
static String |
Pretty.toSimpleString(JCTree tree) |
static String |
Pretty.toSimpleString(JCTree tree,
int maxLength) |
JCTree.JCAnnotation |
TreeMaker.TypeAnnotation(JCTree annotationType,
List<JCTree.JCExpression> args) |
JCTree.JCTypeCast |
TreeMaker.TypeCast(JCTree clazz,
JCTree.JCExpression expr) |
JCTree.JCTypeCast |
JCTree.Factory.TypeCast(JCTree expr,
JCTree.JCExpression type) |
JCTree.JCInstanceOf |
TreeMaker.TypeTest(JCTree.JCExpression expr,
JCTree clazz) |
JCTree.JCInstanceOf |
JCTree.Factory.TypeTest(JCTree.JCExpression expr,
JCTree clazz) |
void |
Pretty.visitTree(JCTree tree) |
void |
TreeTranslator.visitTree(JCTree tree) |
void |
TreeScanner.visitTree(JCTree tree) |
void |
JCTree.Visitor.visitTree(JCTree that) |
JCTree.JCWildcard |
TreeMaker.Wildcard(JCTree.TypeBoundKind kind,
JCTree type) |
JCTree.JCWildcard |
JCTree.Factory.Wildcard(JCTree.TypeBoundKind kind,
JCTree type) |
Modifier and Type | Method and Description |
---|---|
JCTree.JCClassDecl |
TreeMaker.AnonymousClassDef(JCTree.JCModifiers mods,
List<JCTree> defs) |
JCTree.JCClassDecl |
TreeMaker.ClassDef(JCTree.JCModifiers mods,
Name name,
List<JCTree.JCTypeParameter> typarams,
JCTree.JCExpression extending,
List<JCTree.JCExpression> implementing,
List<JCTree> defs) |
JCTree.JCClassDecl |
JCTree.Factory.ClassDef(JCTree.JCModifiers mods,
Name name,
List<JCTree.JCTypeParameter> typarams,
JCTree.JCExpression extending,
List<JCTree.JCExpression> implementing,
List<JCTree> defs) |
JCTree.JCErroneous |
TreeMaker.Erroneous(List<? extends JCTree> errs) |
JCTree.JCErroneous |
JCTree.Factory.Erroneous(List<? extends JCTree> errs) |
static boolean |
TreeInfo.hasConstructors(List<JCTree> trees)
Is there a constructor declaration in the given list of trees?
|
void |
Pretty.printBlock(List<? extends JCTree> stats)
Print a block.
|
void |
Pretty.printEnumBody(List<JCTree> stats)
Print a block.
|
void |
Pretty.printStats(List<? extends JCTree> trees)
Derived visitor method: print list of statements, each on a separate line.
|
DCTree.DCReference |
DocTreeMaker.Reference(String signature,
JCTree qualExpr,
Name member,
List<JCTree> paramTypes) |
void |
TreeScanner.scan(List<? extends JCTree> trees)
Visitor method: scan a list of nodes.
|
static Env<AttrContext> |
TreeInfo.scopeFor(List<JCTree> path) |
JCTree.JCCompilationUnit |
TreeMaker.TopLevel(List<JCTree.JCAnnotation> packageAnnotations,
JCTree.JCExpression pid,
List<JCTree> defs)
Create given tree node at current position.
|
JCTree.JCCompilationUnit |
JCTree.Factory.TopLevel(List<JCTree.JCAnnotation> packageAnnotations,
JCTree.JCExpression pid,
List<JCTree> defs) |
JCTree.JCTry |
TreeMaker.Try(List<JCTree> resources,
JCTree.JCBlock body,
List<JCTree.JCCatch> catchers,
JCTree.JCBlock finalizer) |
JCTree.JCTry |
JCTree.Factory.Try(List<JCTree> resources,
JCTree.JCBlock body,
List<JCTree.JCCatch> catchers,
JCTree.JCBlock finalizer) |
static List<Type> |
TreeInfo.types(List<? extends JCTree> trees)
Return the types of a list of trees.
|
Constructor and Description |
---|
JCAnnotation(JCTree.Tag tag,
JCTree annotationType,
List<JCTree.JCExpression> args) |
JCAssignOp(JCTree.Tag opcode,
JCTree lhs,
JCTree rhs,
Symbol operator) |
JCBreak(Name label,
JCTree target) |
JCContinue(Name label,
JCTree target) |
JCImport(JCTree qualid,
boolean importStatic) |
JCInstanceOf(JCTree.JCExpression expr,
JCTree clazz) |
JCLambda(List<JCTree.JCVariableDecl> params,
JCTree body) |
JCTypeCast(JCTree clazz,
JCTree.JCExpression expr) |
JCWildcard(JCTree.TypeBoundKind kind,
JCTree inner) |
LetExpr(List<JCTree.JCVariableDecl> defs,
JCTree expr) |
Constructor and Description |
---|
JCClassDecl(JCTree.JCModifiers mods,
Name name,
List<JCTree.JCTypeParameter> typarams,
JCTree.JCExpression extending,
List<JCTree.JCExpression> implementing,
List<JCTree> defs,
Symbol.ClassSymbol sym) |
JCCompilationUnit(List<JCTree.JCAnnotation> packageAnnotations,
JCTree.JCExpression pid,
List<JCTree> defs,
JavaFileObject sourcefile,
Symbol.PackageSymbol packge,
Scope.ImportScope namedImportScope,
Scope.StarImportScope starImportScope) |
JCErroneous(List<? extends JCTree> errs) |
JCTry(List<JCTree> resources,
JCTree.JCBlock body,
List<JCTree.JCCatch> catchers,
JCTree.JCBlock finalizer) |
Modifier and Type | Method and Description |
---|---|
JCTree |
JCDiagnostic.DiagnosticPosition.getTree()
Gets the tree node, if any, to which the diagnostic applies.
|
JCTree |
JCDiagnostic.SimpleDiagnosticPosition.getTree() |
Copyright © 2016. All rights reserved.