codeGeneration
Class CgenNode

java.lang.Object
  extended by generalHelpers.TreeNode
      extended by treeNodes.Class_
          extended by codeGeneration.CgenNode

public class CgenNode
extends Class_


Field Summary
 
Fields inherited from class treeNodes.Class_
features, filename, name
 
Fields inherited from class generalHelpers.TreeNode
lineNumber
 
Constructor Summary
CgenNode(Class_ c, int basic_status, CgenClassTable table)
          Constructs a new CgenNode to represent class "c".
 
Method Summary
 void addChild(CgenNode child)
           
 boolean basic()
          Returns true is this is a basic class.
 java.util.Enumeration getChildren()
          Gets the children of this class
 CgenNode getParentNd()
          Gets the parent of this class
 void setParentNd(CgenNode parent)
          Sets the parent of this class.
 
Methods inherited from class treeNodes.Class_
copy, dump, dumpWithTypes, getFeatures, getFilename, getName, getParent
 
Methods inherited from class generalHelpers.TreeNode
copyAbstractSymbol, copyBoolean, dumpAbstractSymbol, dumpBoolean, dumpLine, getLineNumber, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CgenNode

public 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

public void addChild(CgenNode child)

getChildren

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

Returns:
the children

setParentNd

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

Parameters:
parent - the parent

getParentNd

public CgenNode getParentNd()
Gets the parent of this class

Returns:
the parent

basic

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

Returns:
true or false