treeNodes
Class Class_

java.lang.Object
  extended by generalHelpers.TreeNode
      extended by treeNodes.Class_
Direct Known Subclasses:
CgenNode

public class Class_
extends TreeNode

Defines AST constructor 'class_'.

See TreeNode for full documentation.


Field Summary
protected  ListNode<AbstractFeature> features
           
protected  AbstractSymbol filename
           
protected  AbstractSymbol name
           
protected  AbstractSymbol parent
           
 
Fields inherited from class generalHelpers.TreeNode
lineNumber
 
Constructor Summary
Class_(int lineNumber, AbstractSymbol a1, AbstractSymbol a2, ListNode<AbstractFeature> a3, AbstractSymbol a4)
          Creates "class_" AST node.
 
Method Summary
 TreeNode copy()
          Creates a copy of this node.
 void dump(java.io.Writer out, int n)
          Pretty-prints this node to this output stream.
 void dumpWithTypes(java.io.Writer out, int n)
           
 ListNode<AbstractFeature> getFeatures()
           
 AbstractSymbol getFilename()
           
 AbstractSymbol getName()
           
 AbstractSymbol 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
 

Field Detail

name

protected AbstractSymbol name

parent

protected AbstractSymbol parent

features

protected ListNode<AbstractFeature> features

filename

protected AbstractSymbol filename
Constructor Detail

Class_

public Class_(int lineNumber,
              AbstractSymbol a1,
              AbstractSymbol a2,
              ListNode<AbstractFeature> a3,
              AbstractSymbol a4)
Creates "class_" AST node.

Parameters:
lineNumber - the line in the source file from which this node came.
a0 - initial value for name
a1 - initial value for parent
a2 - initial value for features
a3 - initial value for filename
Method Detail

copy

public TreeNode copy()
Description copied from class: TreeNode
Creates a copy of this node.

Specified by:
copy in class TreeNode
Returns:
a copy of this node

dump

public void dump(java.io.Writer out,
                 int n)
          throws java.io.IOException
Description copied from class: TreeNode
Pretty-prints this node to this output stream.

Specified by:
dump in class TreeNode
Parameters:
out - the output stream
n - the number of spaces to indent the output
Throws:
java.io.IOException

getFilename

public AbstractSymbol getFilename()

dumpWithTypes

public void dumpWithTypes(java.io.Writer out,
                          int n)
                   throws java.io.IOException
Throws:
java.io.IOException

getFeatures

public ListNode<AbstractFeature> getFeatures()

getName

public AbstractSymbol getName()

getParent

public AbstractSymbol getParent()