SFE.Compiler
Class NotEqualOperator

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

public class NotEqualOperator
extends Operator
implements Multi2SingleBit

A class for representing not equal operator expressions that can be defined in the program.


Constructor Summary
NotEqualOperator()
           
 
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 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

NotEqualOperator

public NotEqualOperator()
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 statements.

priority

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

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