public class Env<A> extends Object implements Iterable<Env<A>>
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 | Field and Description |
---|---|
boolean |
baseClause
Is this an environment for evaluating a base clause?
|
JCTree.JCClassDecl |
enclClass
The next enclosing class definition.
|
JCTree.JCMethodDecl |
enclMethod
The next enclosing method definition.
|
A |
info
A generic field for further information.
|
Env<A> |
next
The next enclosing environment.
|
Env<A> |
outer
The environment enclosing the current class.
|
JCTree.JCCompilationUnit |
toplevel
The enclosing toplevel tree.
|
JCTree |
tree
The tree with which this environment is associated.
|
Constructor and Description |
---|
Env(JCTree tree,
A info)
Create an outermost environment for a given (toplevel)tree,
with a given info field.
|
Modifier and Type | Method and Description |
---|---|
Env<A> |
dup(JCTree tree)
Duplicate this environment, updating with given tree,
and copying all other fields.
|
Env<A> |
dup(JCTree tree,
A info)
Duplicate this environment, updating with given tree and info,
and copying all other fields.
|
Env<A> |
dupto(Env<A> that)
Duplicate this environment into a given Environment,
using its tree and info, and copying all other fields.
|
Env<A> |
enclosing(JCTree.Tag tag)
Return closest enclosing environment which points to a tree with given tag.
|
Iterator<Env<A>> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public JCTree tree
public JCTree.JCCompilationUnit toplevel
public JCTree.JCClassDecl enclClass
public JCTree.JCMethodDecl enclMethod
public A info
public boolean baseClause
public Env<A> dup(JCTree tree, A info)
public Env<A> dupto(Env<A> that)
public Env<A> dup(JCTree tree)
public Env<A> enclosing(JCTree.Tag tag)
Copyright © 2015. All rights reserved.