| java.lang.Object com.sun.tools.javac.comp.Env
Env | public class Env implements Iterable<Env<A>>(Code) | | A class for environments, instances of which are passed as
arguments to tree visitors. Environments refer to important ancestors
of the subtree that's currently visited, such as the enclosing method,
the enclosing class, or the enclosing toplevel node. They also contain
a generic component, represented as a type parameter, to carry further
information specific to individual passes.
This is NOT part of any API supported by Sun Microsystems. 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.
|
Constructor Summary | |
public | Env(JCTree tree, A info) Create an outermost environment for a given (toplevel)tree,
with a given info field. |
Method Summary | |
public Env<A> | dup(JCTree tree, A info) Duplicate this environment, updating with given tree and info,
and copying all other fields. | public Env<A> | dup(JCTree tree) Duplicate this environment, updating with given tree,
and copying all other fields. | public Env<A> | dupto(Env<A> that) Duplicate this environment into a given Environment,
using its tree and info, and copying all other fields. | public Env<A> | enclosing(int tag) Return closest enclosing environment which points to a tree with given tag. | public Iterator<Env<A>> | iterator() | public String | toString() |
baseClause | public boolean baseClause(Code) | | Is this an environment for evaluating a base clause?
|
info | public A info(Code) | | A generic field for further information.
|
next | public Env<A> next(Code) | | The next enclosing environment.
|
outer | public Env<A> outer(Code) | | The environment enclosing the current class.
|
tree | public JCTree tree(Code) | | The tree with which this environment is associated.
|
Env | public Env(JCTree tree, A info)(Code) | | Create an outermost environment for a given (toplevel)tree,
with a given info field.
|
dup | public Env<A> dup(JCTree tree, A info)(Code) | | Duplicate this environment, updating with given tree and info,
and copying all other fields.
|
dup | public Env<A> dup(JCTree tree)(Code) | | Duplicate this environment, updating with given tree,
and copying all other fields.
|
dupto | public Env<A> dupto(Env<A> that)(Code) | | Duplicate this environment into a given Environment,
using its tree and info, and copying all other fields.
|
enclosing | public Env<A> enclosing(int tag)(Code) | | Return closest enclosing environment which points to a tree with given tag.
|
|
|