This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | MemberEnter.
Visitor class for expressions which might be constant expressions, as per JLS 15.28 (Constant Expressions). |
| Modifier and Type | Field and Description |
|---|---|
| private final Annotate | |
| private final Attr | |
| private final Check | |
| private final Enter | |
| protected Env | env
Visitor argument: the current environment |
| private final Log | |
| protected static final Context. | |
| private final Names | |
| private final Source | source
The Source language setting. |
| private final Symtab | |
| private final Types |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public Env | |
| public Env | |
| pack-priv Env | initEnv(JCTree.
The variable definition. tree,The environment current outside of the variable definition. env)Create a fresh environment for a variable's initializer. |
| public static MemberEnter | |
| protected void | memberEnter(JCTree tree, Env<AttrContext> env)
Enter field and method definitions and process import clauses, catching any completion failure exceptions. |
| pack-priv void | |
| pack-priv Env | methodEnv(JCTree.
The method definition. tree,The environment current outside of the method definition. env)Create a fresh environment for method bodies. |
| public boolean | |
| pack-priv Type | signature(Symbol.
The method's type parameters. typarams,The method's value parameters. params,The method's result type,
null if it is a constructor. res, JCTree.The method's receiver parameter,
null if none given; TODO: or already set here? recvparam,The method's thrown exceptions. thrown,The method's (local) environment. env)Construct method type from method signature. |
| public void | |
| public void | |
| public void | visitTree(JCTree tree)
Overrides com. Default member enter visitor method: do nothing |
| public void |
| annotate | back to summary |
|---|---|
| private final Annotate annotate | |
| attr | back to summary |
|---|---|
| private final Attr attr | |
| chk | back to summary |
|---|---|
| private final Check chk | |
| enter | back to summary |
|---|---|
| private final Enter enter | |
| env | back to summary |
|---|---|
| protected Env<AttrContext> env Visitor argument: the current environment | |
| log | back to summary |
|---|---|
| private final Log log | |
| memberEnterKey | back to summary |
|---|---|
| protected static final Context. | |
| names | back to summary |
|---|---|
| private final Names names | |
| source | back to summary |
|---|---|
| private final Source source The Source language setting. | |
| syms | back to summary |
|---|---|
| private final Symtab syms | |
| types | back to summary |
|---|---|
| private final Types types | |
| MemberEnter | back to summary |
|---|---|
protected MemberEnter(Context context)
| |
| checkReceiver | back to summary |
|---|---|
| pack-priv void checkReceiver(JCTree. | |
| checkType | back to summary |
|---|---|
| pack-priv void checkType(JCTree tree, Type type, JCDiagnostic. | |
| getInitEnv | back to summary |
|---|---|
| public Env | |
| getMethodEnv | back to summary |
|---|---|
| public Env | |
| initEnv | back to summary |
|---|---|
| pack-priv Env Create a fresh environment for a variable's initializer. If the variable is a field, the owner of the environment's scope is be the variable itself, otherwise the owner is the method enclosing the variable definition.
| |
| instance | back to summary |
|---|---|
| public static MemberEnter instance(Context context) | |
| memberEnter | back to summary |
|---|---|
| protected void memberEnter(JCTree tree, Env<AttrContext> env) Enter field and method definitions and process import clauses, catching any completion failure exceptions. | |
| memberEnter | back to summary |
|---|---|
| pack-priv void memberEnter(List<? extends JCTree> trees, Env<AttrContext> env) Enter members from a list of trees. | |
| methodEnv | back to summary |
|---|---|
| pack-priv Env Create a fresh environment for method bodies.
| |
| needsLazyConstValue | back to summary |
|---|---|
| public boolean needsLazyConstValue(JCTree tree) | |
| signature | back to summary |
|---|---|
| pack-priv Type signature(Symbol. Construct method type from method signature.
| |
| visitErroneous | back to summary |
|---|---|
| public void visitErroneous(JCTree. Overrides com. | |
| visitMethodDef | back to summary |
|---|---|
| public void visitMethodDef(JCTree. Overrides com. | |
| visitTree | back to summary |
|---|---|
| public void visitTree(JCTree tree) Overrides com. Default member enter visitor method: do nothing | |
| visitVarDef | back to summary |
|---|---|
| public void visitVarDef(JCTree. Overrides com. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| ALLOWED_OPERATORS | back to summary |
|---|---|
| private static final Set<JCTree. | |
| result | back to summary |
|---|---|
| pack-priv boolean result | |
| InitTreeVisitor | back to summary |
|---|---|
| pack-priv InitTreeVisitor() | |
| visitBinary | back to summary |
|---|---|
| public void visitBinary(JCTree. Overrides com.
| |
| visitConditional | back to summary |
|---|---|
| public void visitConditional(JCTree. Overrides com.
| |
| visitIdent | back to summary |
|---|---|
| public void visitIdent(JCTree. Overrides com.
| |
| visitLiteral | back to summary |
|---|---|
| public void visitLiteral(JCTree. Overrides com.
| |
| visitParens | back to summary |
|---|---|
| public void visitParens(JCTree. Overrides com.
| |
| visitSelect | back to summary |
|---|---|
| public void visitSelect(JCTree. Overrides com.
| |
| visitTree | back to summary |
|---|---|
| public void visitTree(JCTree tree) Overrides com.
| |
| visitTypeCast | back to summary |
|---|---|
| public void visitTypeCast(JCTree. Overrides com.
| |
| visitUnary | back to summary |
|---|---|
| public void visitUnary(JCTree. Overrides com.
| |