Class CgenNode

java.lang.Object
  extended by TreeNode
      extended by Class_
          extended by class_c
              extended by CgenNode

 class CgenNode
extends class_c


Field Summary
(package private) static int Basic
          Indicates a basic class
private  int basic_status
          Does this node correspond to a basic class?
private  java.util.Vector children
          The children of this node in the inheritance tree
(package private) static int NotBasic
          Indicates a class that came from a Cool program
private  CgenNode parent
          The parent of this node in the inheritance tree
 
Fields inherited from class class_c
features, filename, name
 
Fields inherited from class TreeNode
lineNumber
 
Constructor Summary
CgenNode(Class_ c, int basic_status, CgenClassTable table)
          Constructs a new CgenNode to represent class "c".
 
Method Summary
(package private)  void addChild(CgenNode child)
           
(package private)  boolean basic()
          Returns true is this is a basic class.
(package private)  java.util.Enumeration getChildren()
          Gets the children of this class
(package private)  CgenNode getParentNd()
          Gets the parent of this class
(package private)  void setParentNd(CgenNode parent)
          Sets the parent of this class.
 
Methods inherited from class class_c
copy, dump_with_types, dump, getFeatures, getFilename, getName, getParent
 
Methods inherited from class TreeNode
copy_AbstractSymbol, copy_Boolean, dump_AbstractSymbol, dump_Boolean, dump_line, getLineNumber, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private CgenNode parent
The parent of this node in the inheritance tree


children

private java.util.Vector children
The children of this node in the inheritance tree


Basic

static final int Basic
Indicates a basic class

See Also:
Constant Field Values

NotBasic

static final int NotBasic
Indicates a class that came from a Cool program

See Also:
Constant Field Values

basic_status

private int basic_status
Does this node correspond to a basic class?

Constructor Detail

CgenNode

CgenNode(Class_ c,
         int basic_status,
         CgenClassTable table)
Constructs a new CgenNode to represent class "c".

Parameters:
c - the class
basic_status - is this class basic or not
table - the class table
Method Detail

addChild

void addChild(CgenNode child)

getChildren

java.util.Enumeration getChildren()
Gets the children of this class

Returns:
the children

setParentNd

void setParentNd(CgenNode parent)
Sets the parent of this class.

Parameters:
parent - the parent

getParentNd

CgenNode getParentNd()
Gets the parent of this class

Returns:
the parent

basic

boolean basic()
Returns true is this is a basic class.

Returns:
true or false