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

java.lang.Object
  extended by com.sun.tools.javac.code.Scope
      extended by com.sun.tools.javac.code.Scope.ErrorScope
Enclosing class:
Scope

public static class Scope.ErrorScope
extends Scope

An error scope, for which the owner should be an error symbol.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.tools.javac.code.Scope
Scope.DelegatedScope, Scope.Entry, Scope.ErrorScope, Scope.ImportScope
 
Field Summary
 
Fields inherited from class com.sun.tools.javac.code.Scope
elems, emptyScope, hashMask, level, nelems, next, owner, table
 
Constructor Summary
Scope.ErrorScope(Scope next, Symbol errSymbol, Scope.Entry[] table)
           
Scope.ErrorScope(Symbol errSymbol)
           
 
Method Summary
 Scope dup()
          Construct a fresh scope within this scope, with same owner, which shares its table with the outer scope.
 Scope dupUnshared()
          Construct a fresh scope within this scope, with same owner, with a new hash table, whose contents initially are those of the table of its outer scope.
 Scope.Entry lookup(Name name)
          Return the entry associated with given name, starting in this scope and proceeding outwards.
 
Methods inherited from class com.sun.tools.javac.code.Scope
dup, enter, enter, enter, enterIfAbsent, getElements, getLevel, includes, leave, makeEntry, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Scope.ErrorScope

Scope.ErrorScope(Scope next,
                 Symbol errSymbol,
                 Scope.Entry[] table)

Scope.ErrorScope

public Scope.ErrorScope(Symbol errSymbol)
Method Detail

dup

public Scope dup()
Description copied from class: Scope
Construct a fresh scope within this scope, with same owner, which shares its table with the outer scope. Used in connection with method leave if scope access is stack-like in order to avoid allocation of fresh tables.

Overrides:
dup in class Scope

dupUnshared

public Scope dupUnshared()
Description copied from class: Scope
Construct a fresh scope within this scope, with same owner, with a new hash table, whose contents initially are those of the table of its outer scope.

Overrides:
dupUnshared in class Scope

lookup

public Scope.Entry lookup(Name name)
Description copied from class: Scope
Return the entry associated with given name, starting in this scope and proceeding outwards. If no entry was found, return the sentinel, which is characterized by having a null in both its scope and sym fields, whereas both fields are non-null for regular entries.

Overrides:
lookup in class Scope