| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectClassTable
This class may be used to contain the semantic information such as the inheritance graph. You may use it or not as you like: it is only here to provide a container for the supplied methods.
| Field Summary | |
private  java.io.PrintStream | 
errorStream
 | 
private  int | 
semantErrors
 | 
| Constructor Summary | |
ClassTable(Classes cls)
 | 
|
| Method Summary | |
 boolean | 
errors()
Returns true if there are any static semantic errors.  | 
private  void | 
installBasicClasses()
Creates data structures representing basic Cool classes (Object, IO, Int, Bool, String).  | 
static void | 
main(java.lang.String[] args)
 | 
 java.io.PrintStream | 
semantError()
Increments semantic error count and returns the print stream for error messages.  | 
 java.io.PrintStream | 
semantError(AbstractSymbol filename,
            TreeNode t)
Prints the file name and the line number of the given tree node.  | 
 java.io.PrintStream | 
semantError(class_ c)
Prints line number and file name of the given class.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private int semantErrors
private java.io.PrintStream errorStream
| Constructor Detail | 
public ClassTable(Classes cls)
| Method Detail | 
private void installBasicClasses()
public java.io.PrintStream semantError(class_ c)
c - the class
public java.io.PrintStream semantError(AbstractSymbol filename,
                                       TreeNode t)
filename - the file namet - the tree node
public java.io.PrintStream semantError()
public boolean errors()
public static void main(java.lang.String[] args)
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||