treeNodes
Class Branch
java.lang.Object
   generalHelpers.TreeNode
generalHelpers.TreeNode
       treeNodes.Branch
treeNodes.Branch
- public class Branch 
- extends TreeNode
Defines AST constructor 'branch'.
 
 See TreeNode for full documentation.
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
name
protected AbstractSymbol name
type_decl
protected AbstractSymbol type_decl
expr
protected AbstractExpression expr
Branch
public Branch(int lineNumber,
              AbstractSymbol a1,
              AbstractSymbol a2,
              AbstractExpression a3)
- Creates "branch" AST node.
 
- Parameters:
- lineNumber- the line in the source file from which this node came.
- a0- initial value for name
- a1- initial value for type_decl
- a2- initial value for expr
 
getExpr
public AbstractExpression getExpr()
- 
 
copy
public TreeNode copy()
- Description copied from class: TreeNode
- Creates a copy of this node.
 
- 
- Specified by:
- copyin 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:
- dumpin class- TreeNode
 
- 
- Parameters:
- out- the output stream
- n- the number of spaces to indent the output
- Throws:
- java.io.IOException
 
dumpWithTypes
public void dumpWithTypes(java.io.Writer out,
                          int n)
                   throws java.io.IOException
- 
- Throws:
- java.io.IOException