fmrisc.AST
Class UnaryExpression

java.lang.Object
  extended byfmrisc.AST.ASTBase
      extended byfmrisc.AST.ExpressionBase
          extended byfmrisc.AST.UnaryExpression
All Implemented Interfaces:
AST, Expression
Direct Known Subclasses:
NegationTerm, NotFormula

public abstract class UnaryExpression
extends ExpressionBase

Abstract base class of unary expressions


Constructor Summary
UnaryExpression(java.lang.String op, Expression base)
          constructs binary expression from op and base
 
Method Summary
 Expression getBase()
          Returns base expression
 void printCore(java.io.PrintWriter out)
          Prints text representation of tree on out (without new line termination).
 
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.Expression
instantiate
 
Methods inherited from interface fmrisc.AST.AST
print, printParens, toString
 

Constructor Detail

UnaryExpression

public UnaryExpression(java.lang.String op,
                       Expression base)
constructs binary expression from op and base

Parameters:
op - the name of the operation used for printing
base - the operand
Method Detail

getBase

public Expression getBase()
Returns base expression

Returns:
the base expression

printCore

public void printCore(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination).

Specified by:
printCore in interface AST
Specified by:
printCore in class ASTBase
Parameters:
out - the stream on which the text is written