com.sun.tools.javac.api
Class JavacScope

java.lang.Object
  extended by com.sun.tools.javac.api.JavacScope
All Implemented Interfaces:
Scope

public class JavacScope
extends java.lang.Object
implements Scope

Provides an implementation of Scope.

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.


Field Summary
protected  Env<AttrContext> env
           
 
Constructor Summary
JavacScope(Env<AttrContext> env)
          Creates a new instance of JavacScope
 
Method Summary
 boolean equals(java.lang.Object other)
           
 TypeElement getEnclosingClass()
          Returns the innermost type element containing the position of this scope
 ExecutableElement getEnclosingMethod()
          Returns the innermost executable element containing the position of this scope.
 JavacScope getEnclosingScope()
          Returns the enclosing scope.
 Env<AttrContext> getEnv()
           
 java.lang.Iterable<? extends Element> getLocalElements()
          Returns the elements directly contained in this scope.
 int hashCode()
           
 boolean isStarImportScope()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

env

protected final Env<AttrContext> env
Constructor Detail

JavacScope

JavacScope(Env<AttrContext> env)
Creates a new instance of JavacScope

Method Detail

getEnclosingScope

public JavacScope getEnclosingScope()
Description copied from interface: Scope
Returns the enclosing scope.

Specified by:
getEnclosingScope in interface Scope

getEnclosingClass

public TypeElement getEnclosingClass()
Description copied from interface: Scope
Returns the innermost type element containing the position of this scope

Specified by:
getEnclosingClass in interface Scope

getEnclosingMethod

public ExecutableElement getEnclosingMethod()
Description copied from interface: Scope
Returns the innermost executable element containing the position of this scope.

Specified by:
getEnclosingMethod in interface Scope

getLocalElements

public java.lang.Iterable<? extends Element> getLocalElements()
Description copied from interface: Scope
Returns the elements directly contained in this scope.

Specified by:
getLocalElements in interface Scope

getEnv

public Env<AttrContext> getEnv()

isStarImportScope

public boolean isStarImportScope()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object