public class IsEqual extends Instruction
Modifier and Type | Field and Description |
---|---|
private ArithmeticBase |
numOne |
private ArithmeticBase |
numTwo |
gelementsToValue
Constructor and Description |
---|
IsEqual(ArithmeticBase num1,
ArithmeticBase num2)
Constructs an IsEqual Instruction
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context.
|
java.lang.String |
toString() |
private ArithmeticBase numOne
private ArithmeticBase numTwo
public IsEqual(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