coursesolutions
Class CourseBuildSymtab

java.lang.Object
  extended by lab8.Symtab
      extended by coursesolutions.CourseBuildSymtab
All Implemented Interfaces:
SymtabInterface

public class CourseBuildSymtab
extends Symtab
implements SymtabInterface

Class sponsored implementation of a symbol table. You should see this message but not the code!


Field Summary
static boolean debug
           
 
Constructor Summary
CourseBuildSymtab()
           
 
Method Summary
 void decrNestLevel()
          Close an old nest
 void enter(java.lang.String id, SymInfo s)
           
 int getCurrentNestLevel()
           
 void incrNestLevel()
          Open a new nest
 SymInfo lookup(java.lang.String id)
           
 void out(java.lang.String s)
           
 
Methods inherited from class lab8.Symtab
err, err, out
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lab8.SymtabInterface
err, err, out
 

Field Detail

debug

public static boolean debug
Constructor Detail

CourseBuildSymtab

public CourseBuildSymtab()
Method Detail

out

public void out(java.lang.String s)
Specified by:
out in interface SymtabInterface
Overrides:
out in class Symtab

incrNestLevel

public void incrNestLevel()
Description copied from interface: SymtabInterface
Open a new nest

Specified by:
incrNestLevel in interface SymtabInterface

decrNestLevel

public void decrNestLevel()
Description copied from interface: SymtabInterface
Close an old nest

Specified by:
decrNestLevel in interface SymtabInterface

getCurrentNestLevel

public int getCurrentNestLevel()
Specified by:
getCurrentNestLevel in interface SymtabInterface
Specified by:
getCurrentNestLevel in class Symtab

lookup

public SymInfo lookup(java.lang.String id)
Specified by:
lookup in interface SymtabInterface

enter

public void enter(java.lang.String id,
                  SymInfo s)
Specified by:
enter in interface SymtabInterface