public class IsNotEqual extends Instruction
Modifier and Type | Field and Description |
---|---|
private ArithmeticBase |
numOne |
private ArithmeticBase |
numTwo |
gelementsToValue
Constructor and Description |
---|
IsNotEqual(ArithmeticBase num1,
ArithmeticBase num2)
Constructs an IsNotEqual Instruction
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context.
|
java.lang.String |
toString()
Format NOTEQUAL num1 num2
|
private ArithmeticBase numOne
private ArithmeticBase numTwo
public IsNotEqual(ArithmeticBase num1, ArithmeticBase num2)
num1
- is the first ArithmeticBase in the comparisonnum2
- is the second ArithmeticBase in the comparisonpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object evaluate(Context c)
GrammarElement
evaluate
in class Instruction
c
- is the Context of what we are evaluating