fmrisc.AST
Class UnaryExpression
java.lang.Object
fmrisc.AST.ASTBase
fmrisc.AST.ExpressionBase
fmrisc.AST.UnaryExpression
- All Implemented Interfaces:
- AST, Expression
- Direct Known Subclasses:
- NegationTerm, NotFormula
- public abstract class UnaryExpression
- extends ExpressionBase
Abstract base class of unary expressions
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 printingbase
- the operand
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