com.sun.tools.javac.code
Class Scope.Entry

java.lang.Object
  extended by com.sun.tools.javac.code.Scope.Entry
Direct Known Subclasses:
Scope.ImportScope.ImportEntry
Enclosing class:
Scope

public static class Scope.Entry
extends java.lang.Object

A class for scope entries.


Field Summary
 Scope scope
          The entry's scope.
private  Scope.Entry shadowed
          An entry with the same hash code, or sentinel.
 Scope.Entry sibling
          Next entry in same scope.
 Symbol sym
          The referenced symbol.
 
Constructor Summary
Scope.Entry(Symbol sym, Scope.Entry shadowed, Scope.Entry sibling, Scope scope)
           
 
Method Summary
 Scope getOrigin()
           
 Scope.Entry next()
          Return next entry with the same name as this entry, proceeding outwards if not found in this scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sym

public Symbol sym
The referenced symbol. sym == null iff this == sentinel


shadowed

private Scope.Entry shadowed
An entry with the same hash code, or sentinel.


sibling

public Scope.Entry sibling
Next entry in same scope.


scope

public Scope scope
The entry's scope. scope == null iff this == sentinel for an entry in an import scope, this is the scope where the entry came from (i.e. was imported from).

Constructor Detail

Scope.Entry

public Scope.Entry(Symbol sym,
                   Scope.Entry shadowed,
                   Scope.Entry sibling,
                   Scope scope)
Method Detail

next

public Scope.Entry next()
Return next entry with the same name as this entry, proceeding outwards if not found in this scope.


getOrigin

public Scope getOrigin()