public class IsGreater extends Instruction
Modifier and Type | Field and Description |
---|---|
private ArithmeticBase |
numOne |
private ArithmeticBase |
numTwo |
gelementsToValue
Constructor and Description |
---|
IsGreater(ArithmeticBase num1,
ArithmeticBase num2)
Constructs an IsGreater 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 IsGreater(ArithmeticBase num1, ArithmeticBase num2)
num1
- first ArithmeticBase in the comparisonnum2
- 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