Package | Description |
---|---|
com.sun.tools.javac.api | |
com.sun.tools.javac.code | |
com.sun.tools.javac.comp | |
com.sun.tools.javac.jvm | |
com.sun.tools.javac.main | |
com.sun.tools.javac.tree |
Modifier and Type | Field and Description |
---|---|
protected Env<AttrContext> |
JavacScope.env |
Modifier and Type | Method and Description |
---|---|
Env<AttrContext> |
JavacScope.getEnv() |
Modifier and Type | Method and Description |
---|---|
Symbol.ClassSymbol |
Types.makeFunctionalInterfaceClass(Env<AttrContext> env,
Name name,
List<Type> targets,
long cflags)
Create a symbol for a class that implements a given functional interface
and overrides its functional descriptor.
|
void |
TypeAnnotations.organizeTypeAnnotationsSignatures(Env<AttrContext> env,
JCTree.JCClassDecl tree)
Separate type annotations from declaration annotations and
determine the correct positions for type annotations.
|
void |
Symbol.VarSymbol.setLazyConstValue(Env<AttrContext> env,
Attr attr,
JCTree.JCVariableDecl variable) |
void |
TypeAnnotations.validateTypeAnnotationsSignatures(Env<AttrContext> env,
JCTree.JCClassDecl tree) |
Modifier and Type | Class and Description |
---|---|
class |
AttrContextEnv
Env<A> specialized as Env<AttrContext> |
Modifier and Type | Field and Description |
---|---|
Env<AttrContext> |
Annotate.AnnotateRepeatedContext.env |
protected Env<AttrContext> |
Enter.env
Visitor argument: the current environment.
|
protected Env<AttrContext> |
MemberEnter.env
Visitor argument: the current environment
|
Env<A> |
Env.next
The next enclosing environment.
|
Env<A> |
Env.outer
The environment enclosing the current class.
|
Modifier and Type | Method and Description |
---|---|
Env<AttrContext> |
Attr.attribExprToTree(JCTree expr,
Env<AttrContext> env,
JCTree tree) |
Env<AttrContext> |
Attr.attribStatToTree(JCTree stmt,
Env<AttrContext> env,
JCTree tree) |
Env<AttrContext> |
Enter.classEnv(JCTree.JCClassDecl tree,
Env<AttrContext> env)
Create a fresh environment for class bodies.
|
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.
|
Env<A> |
Env.dupto(Env<A> that)
Duplicate this environment into a given Environment,
using its tree and info, and copying all other fields.
|
Env<A> |
Env.enclosing(JCTree.Tag tag)
Return closest enclosing environment which points to a tree with given tag.
|
Env<AttrContext> |
Enter.getClassEnv(Symbol.TypeSymbol sym) |
Env<AttrContext> |
Enter.getEnv(Symbol.TypeSymbol sym)
Accessor for typeEnvs
|
Env<AttrContext> |
MemberEnter.getInitEnv(JCTree.JCVariableDecl tree,
Env<AttrContext> env) |
Env<AttrContext> |
MemberEnter.getMethodEnv(JCTree.JCMethodDecl tree,
Env<AttrContext> env) |
Env<AttrContext> |
Enter.getTopLevelEnv(JCTree.JCCompilationUnit tree) |
Env<AttrContext> |
Todo.peek() |
Env<AttrContext> |
Todo.poll() |
Modifier and Type | Method and Description |
---|---|
Queue<Queue<Env<AttrContext>>> |
Todo.groupByFile() |
Iterator<Env<A>> |
Env.iterator() |
Iterator<Env<AttrContext>> |
Todo.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
Flow.analyzeLambda(Env<AttrContext> env,
JCTree.JCLambda that,
TreeMaker make,
boolean speculative) |
List<Type> |
Flow.analyzeLambdaThrownTypes(Env<AttrContext> env,
JCTree.JCLambda that,
TreeMaker make) |
void |
Flow.AbstractAssignAnalyzer.analyzeTree(Env<?> env)
Perform definite assignment/unassignment analysis on a tree.
|
void |
Flow.AbstractAssignAnalyzer.analyzeTree(Env<?> env,
JCTree tree) |
void |
Flow.analyzeTree(Env<AttrContext> env,
TreeMaker make) |
void |
Todo.append(Env<AttrContext> env) |
void |
Attr.attrib(Env<AttrContext> env)
Attribute an env for either a top level tree or class declaration.
|
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) |
Type |
Attr.attribImportQualifier(JCTree.JCImport tree,
Env<AttrContext> env) |
Object |
Attr.attribLazyConstantValue(Env<AttrContext> env,
JCTree.JCVariableDecl variable,
Type type)
Attribute a "lazy constant value".
|
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) |
void |
Attr.attribTopLevel(Env<AttrContext> env)
Attribute a top level tree.
|
Type |
Attr.attribType(JCTree tree,
Env<AttrContext> env)
Derived visitor method: attribute a type tree.
|
Type |
Attr.checkMethod(Type site,
Symbol sym,
com.sun.tools.javac.comp.Attr.ResultInfo resultInfo,
Env<AttrContext> env,
List<JCTree.JCExpression> argtrees,
List<Type> argtypes,
List<Type> typeargtypes)
Check that method arguments conform to its instantiation.
|
void |
Check.checkRedundantCast(Env<AttrContext> env,
JCTree.JCTypeCast tree)
Check for redundant casts (i.e.
|
Env<AttrContext> |
Enter.classEnv(JCTree.JCClassDecl tree,
Env<AttrContext> env)
Create a fresh environment for class bodies.
|
JCTree.JCExpression |
TransTypes.coerce(Env<AttrContext> env,
JCTree.JCExpression tree,
Type target)
Construct an attributed tree to coerce an expression to some erased
target type, unless the expression is already assignable to that type.
|
Env<A> |
Env.dupto(Env<A> that)
Duplicate this environment into a given Environment,
using its tree and info, and copying all other fields.
|
Env<AttrContext> |
MemberEnter.getInitEnv(JCTree.JCVariableDecl tree,
Env<AttrContext> env) |
Env<AttrContext> |
MemberEnter.getMethodEnv(JCTree.JCMethodDecl tree,
Env<AttrContext> env) |
Type |
Infer.instantiateMethod(Env<AttrContext> env,
List<Type> tvars,
Type.MethodType mt,
com.sun.tools.javac.comp.Attr.ResultInfo resultInfo,
Symbol msym,
List<Type> argtypes,
boolean allowBoxing,
boolean useVarargs,
com.sun.tools.javac.comp.Resolve.MethodResolutionContext resolveContext,
Warner warn)
Main inference entry point - instantiate a generic method type
using given argument types and (possibly) an expected target-type.
|
boolean |
Resolve.isAccessible(Env<AttrContext> env,
Symbol.TypeSymbol c)
Is class accessible in given evironment?
|
boolean |
Resolve.isAccessible(Env<AttrContext> env,
Symbol.TypeSymbol c,
boolean checkInner) |
boolean |
Resolve.isAccessible(Env<AttrContext> env,
Type site,
Symbol sym)
Is symbol accessible as a member of given type in given environment?
|
boolean |
Resolve.isAccessible(Env<AttrContext> env,
Type site,
Symbol sym,
boolean checkInner) |
boolean |
CompileStates.isDone(Env<AttrContext> env,
CompileStates.CompileState cs) |
protected static boolean |
Resolve.isStatic(Env<AttrContext> env)
An environment is "static" if its static level is greater than
the one of its outer environment
|
void |
Resolve.logAccessErrorInternal(Env<AttrContext> env,
JCTree tree,
Type type) |
protected void |
MemberEnter.memberEnter(JCTree tree,
Env<AttrContext> env)
Enter field and method definitions and process import
clauses, catching any completion failure exceptions.
|
boolean |
Todo.offer(Env<AttrContext> e) |
Symbol.MethodSymbol |
Resolve.resolveInternalConstructor(JCDiagnostic.DiagnosticPosition pos,
Env<AttrContext> env,
Type site,
List<Type> argtypes,
List<Type> typeargtypes)
Resolve a constructor, throw a fatal error if not found.
|
Symbol.VarSymbol |
Resolve.resolveInternalField(JCDiagnostic.DiagnosticPosition pos,
Env<AttrContext> env,
Type site,
Name name)
Resolve a field identifier, throw a fatal error if not found.
|
Symbol.MethodSymbol |
Resolve.resolveInternalMethod(JCDiagnostic.DiagnosticPosition pos,
Env<AttrContext> env,
Type site,
Name name,
List<Type> argtypes,
List<Type> typeargtypes)
Resolve a qualified method identifier, throw a fatal error if not
found.
|
<T extends JCTree> |
TransTypes.translateArgs(List<T> _args,
List<Type> parameters,
Type varargsElement,
Env<AttrContext> localEnv) |
JCTree |
LambdaToMethod.translateTopLevelClass(Env<AttrContext> env,
JCTree cdef,
TreeMaker make) |
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.
|
void |
MemberEnter.typeAnnotate(JCTree tree,
Env<AttrContext> env,
Symbol sym,
JCDiagnostic.DiagnosticPosition deferPos) |
Constructor and Description |
---|
AnnotateRepeatedContext(Env<AttrContext> env,
Map<Symbol.TypeSymbol,ListBuffer<T>> annotated,
Map<T,JCDiagnostic.DiagnosticPosition> pos,
Log log,
boolean isTypeCompound) |
Modifier and Type | Method and Description |
---|---|
boolean |
Gen.genClass(Env<AttrContext> env,
JCTree.JCClassDecl cdef)
Generate code for a class definition.
|
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.
|
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.
|
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.
|
void |
Gen.genStats(List<JCTree.JCStatement> trees,
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.
|
Modifier and Type | Method and Description |
---|---|
Env<AttrContext> |
JavaCompiler.attribute(Env<AttrContext> env)
Attribute a parse tree.
|
Modifier and Type | Method and Description |
---|---|
Queue<Env<AttrContext>> |
JavaCompiler.attribute(Queue<Env<AttrContext>> envs)
Attribute a list of parse trees, such as found on the "todo" list.
|
Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> |
JavaCompiler.desugar(Queue<Env<AttrContext>> envs)
Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation.
|
Queue<Env<AttrContext>> |
JavaCompiler.flow(Env<AttrContext> env)
Perform dataflow checks on an attributed parse tree.
|
Queue<Env<AttrContext>> |
JavaCompiler.flow(Queue<Env<AttrContext>> envs)
Perform dataflow checks on attributed parse trees.
|
Modifier and Type | Method and Description |
---|---|
Env<AttrContext> |
JavaCompiler.attribute(Env<AttrContext> env)
Attribute a parse tree.
|
protected void |
JavaCompiler.desugar(Env<AttrContext> env,
Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> results)
Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation.
|
Queue<Env<AttrContext>> |
JavaCompiler.flow(Env<AttrContext> env)
Perform dataflow checks on an attributed parse tree.
|
protected void |
JavaCompiler.flow(Env<AttrContext> env,
Queue<Env<AttrContext>> results)
Perform dataflow checks on an attributed parse tree.
|
Modifier and Type | Method and Description |
---|---|
Queue<Env<AttrContext>> |
JavaCompiler.attribute(Queue<Env<AttrContext>> envs)
Attribute a list of parse trees, such as found on the "todo" list.
|
protected void |
JavaCompiler.desugar(Env<AttrContext> env,
Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> results)
Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation.
|
Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> |
JavaCompiler.desugar(Queue<Env<AttrContext>> envs)
Prepare attributed parse trees, in conjunction with their attribution contexts,
for source or code generation.
|
protected void |
JavaCompiler.flow(Env<AttrContext> env,
Queue<Env<AttrContext>> results)
Perform dataflow checks on an attributed parse tree.
|
Queue<Env<AttrContext>> |
JavaCompiler.flow(Queue<Env<AttrContext>> envs)
Perform dataflow checks on attributed parse trees.
|
void |
JavaCompiler.generate(Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> queue)
Generates the source or class file for a list of classes.
|
void |
JavaCompiler.generate(Queue<Pair<Env<AttrContext>,JCTree.JCClassDecl>> queue,
Queue<JavaFileObject> results) |
Modifier and Type | Method and Description |
---|---|
static Env<AttrContext> |
TreeInfo.scopeFor(JCTree node,
JCTree.JCCompilationUnit unit) |
static Env<AttrContext> |
TreeInfo.scopeFor(List<JCTree> path) |
Modifier and Type | Method and Description |
---|---|
static String |
TreeInfo.getCommentText(Env<?> env,
JCTree tree) |
static DCTree.DCDocComment |
TreeInfo.getCommentTree(Env<?> env,
JCTree tree) |
Copyright © 2017 earcam. All rights reserved.