SFE.Compiler
Class GreaterEqualOperator

java.lang.Object
  extended by SFE.Compiler.Operator
      extended by SFE.Compiler.GreaterEqualOperator
All Implemented Interfaces:
Multi2SingleBit

public class GreaterEqualOperator
extends Operator
implements Multi2SingleBit

A class for representing '>=' operator expressions that can be defined in the program.


Constructor Summary
GreaterEqualOperator()
           
 
Method Summary
 int arity()
          Returns 2 as the arity of this PlusOperator.
 BlockStatement multi2SingleBit(java.lang.Object obj)
          Transforms this multibit expression into singlebit statements and returns the result.
 int priority()
          Returns an int (1) that represents the priority of the operator
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GreaterEqualOperator

public GreaterEqualOperator()
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object

arity

public int arity()
Returns 2 as the arity of this PlusOperator. Arity is 1 for unary ops; 2 for binary ops; 3 for ternary ops; 0 for constants

Specified by:
arity in class Operator
Returns:
2 as the arity of this PlusOperator.

multi2SingleBit

public BlockStatement multi2SingleBit(java.lang.Object obj)
Transforms this multibit expression into singlebit statements and returns the result. Note: x>=y <==> !(x<y).

Specified by:
multi2SingleBit in interface Multi2SingleBit
Parameters:
obj - the AssignmentStatement that holds this GreaterOperator.
Returns:
a BlockStatement containing the result transformation.

priority

public int priority()
Returns an int (1) that represents the priority of the operator

Specified by:
priority in class Operator
Returns:
an int (1) that represents the priority of the operator