fmrisc.AST
Class PlusTerm

java.lang.Object
  extended byfmrisc.AST.ASTBase
      extended byfmrisc.AST.ExpressionBase
          extended byfmrisc.AST.BinaryExpression
              extended byfmrisc.AST.PlusTerm
All Implemented Interfaces:
AST, Expression

public final class PlusTerm
extends BinaryExpression

Handling of binary sums.


Constructor Summary
PlusTerm(Expression base1, Expression base2)
          construct binary sum with components base1 and base2
 
Method Summary
 Expression instantiate()
          return copy of AST with value references instantiated by the substitutions set in the corresponding declaration identifiers
 
Methods inherited from class fmrisc.AST.BinaryExpression
getFirst, getSecond, printCore
 
Methods inherited from class fmrisc.AST.ExpressionBase
printPriority
 
Methods inherited from class fmrisc.AST.ASTBase
print, printParens, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fmrisc.AST.AST
print, printParens, toString
 

Constructor Detail

PlusTerm

public PlusTerm(Expression base1,
                Expression base2)
construct binary sum with components base1 and base2

Parameters:
base1 - the first component
base2 - the second component
Method Detail

instantiate

public Expression instantiate()
return copy of AST with value references instantiated by the substitutions set in the corresponding declaration identifiers

Returns:
the instantiated copy