treeNodes
Class Mul

java.lang.Object
  extended by generalHelpers.TreeNode
      extended by treeNodes.AbstractExpression
          extended by treeNodes.AbstractBinaryOperation
              extended by treeNodes.Mul

public class Mul
extends AbstractBinaryOperation

Defines AST constructor 'mul'.

See TreeNode for full documentation.


Field Summary
 
Fields inherited from class treeNodes.AbstractBinaryOperation
e1, e2
 
Fields inherited from class generalHelpers.TreeNode
lineNumber
 
Constructor Summary
Mul(int lineNumber, AbstractExpression a1, AbstractExpression a2)
          Creates "mul" AST node.
 
Method Summary
 TreeNode copy()
          Creates a copy of this node.
protected  java.lang.String getTag()
          This function is used by the dump-functions to specialize output to the subclass.
 
Methods inherited from class treeNodes.AbstractBinaryOperation
dump, dumpWithTypes, getExpr1, getExpr2
 
Methods inherited from class treeNodes.AbstractExpression
dumpType, getType, setType
 
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

Mul

public Mul(int lineNumber,
           AbstractExpression a1,
           AbstractExpression a2)
Creates "mul" AST node.

Parameters:
lineNumber - the line in the source file from which this node came.
a0 - initial value for e1
a1 - initial value for e2
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

getTag

protected java.lang.String getTag()
Description copied from class: AbstractBinaryOperation
This function is used by the dump-functions to specialize output to the subclass.

Specified by:
getTag in class AbstractBinaryOperation
Returns:
a tag specific to the subclass