codeGeneration
Class CgenClassTable

java.lang.Object
  extended by symbolHandling.SymbolTable<CgenNode>
      extended by codeGeneration.CgenClassTable

public class CgenClassTable
extends SymbolTable<CgenNode>

This class is used for representing the inheritance tree during code generation. You will need to fill in some of its Methods and potentially extend it in other useful ways.


Constructor Summary
CgenClassTable(ListNode<Class_> cls, java.io.PrintWriter str)
          Constructs a new class table and invokes the code generator
 
Method Summary
 void code()
          This Method is the meat of the code generator.
 CgenNode root()
          Gets the root of the inheritance tree
 
Methods inherited from class symbolHandling.SymbolTable
addId, enterScope, exitScope, lookup, probe, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CgenClassTable

public CgenClassTable(ListNode<Class_> cls,
                      java.io.PrintWriter str)
Constructs a new class table and invokes the code generator

Method Detail

code

public void code()
This Method is the meat of the code generator. It is to be filled in programming assignment 5


root

public CgenNode root()
Gets the root of the inheritance tree