fmrisc.Syntax
Class NegationTerm

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

public final class NegationTerm
extends UnaryExpression

Handling of negated (minus) terms


Constructor Summary
NegationTerm(Expression base)
          construct negation (minus term) of base term
 
Method Summary
 int getPriority()
          get binding level for printing (lower numbers mean greater binding power)
 
Methods inherited from class fmrisc.Syntax.UnaryExpression
accept, getBase, instantiate, printCore
 
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

NegationTerm

public NegationTerm(Expression base)
construct negation (minus term) of base term

Parameters:
base - the base term
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