fmrisc.Syntax
Class ImpliesFormula

java.lang.Object
  extended by fmrisc.Syntax.ASTBase
      extended by fmrisc.Syntax.ExpressionBase
          extended by fmrisc.Syntax.BinaryExpression
              extended by fmrisc.Syntax.ImpliesFormula
All Implemented Interfaces:
AST, Expression

public final class ImpliesFormula
extends BinaryExpression

Handling of implications


Constructor Summary
ImpliesFormula(Expression base1, Expression base2)
          construct conjunction with components base1 and base2
 
Method Summary
 BinaryExpression construct(Expression first, Expression second)
          Construct binary expression of the same kind as this expression.
 int getPriority()
          get binding level for printing (lower numbers mean greater binding power)
 void printCore(java.io.PrintWriter out)
          Prints text representation on out (without new line termination).
 
Methods inherited from class fmrisc.Syntax.BinaryExpression
accept, getFirst, getSecond, instantiate
 
Methods inherited from class fmrisc.Syntax.ExpressionBase
printPriority
 
Methods inherited from class fmrisc.Syntax.ASTBase
print, printParens, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fmrisc.Syntax.AST
print, printParens, toString
 

Constructor Detail

ImpliesFormula

public ImpliesFormula(Expression base1,
                      Expression base2)
construct conjunction with components base1 and base2

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

getPriority

public int getPriority()
get binding level for printing (lower numbers mean greater binding power)

Specified by:
getPriority in interface Expression
Specified by:
getPriority in class ExpressionBase
Returns:
the priority level

printCore

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

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

construct

public BinaryExpression construct(Expression first,
                                  Expression second)
Construct binary expression of the same kind as this expression.

Specified by:
construct in class BinaryExpression
Parameters:
first - an expression.
second - an expression.
Returns:
a binary expression of the same kind as this expression with subexpressions first and second.