gnu.expr
Class NameLookup

java.lang.Object
  extended by gnu.kawa.util.GeneralHashTable
      extended by gnu.expr.NameLookup

public class NameLookup
extends GeneralHashTable

Manages the set of declarations "currently" in scope.


Field Summary
 
Fields inherited from class gnu.kawa.util.GeneralHashTable
mask, num_bindings, table
 
Constructor Summary
NameLookup(Language language)
           
 
Method Summary
 Declaration lookup(java.lang.Object symbol, boolean function)
           
 Declaration lookup(java.lang.Object symbol, int namespace)
           
 boolean pop(Declaration decl)
           
 void pop(ScopeExp exp)
           
 void push(Declaration decl)
           
 void push(ScopeExp exp)
           
 
Methods inherited from class gnu.kawa.util.GeneralHashTable
clear, get, getNode, hash, hash, makeEntry, matches, matches, next, put, put, rehash, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameLookup

public NameLookup(Language language)
Method Detail

push

public void push(Declaration decl)

pop

public boolean pop(Declaration decl)

push

public void push(ScopeExp exp)

pop

public void pop(ScopeExp exp)

lookup

public Declaration lookup(java.lang.Object symbol,
                          int namespace)

lookup

public Declaration lookup(java.lang.Object symbol,
                          boolean function)