public class Greater extends Instruction
Modifier and Type | Field and Description |
---|---|
private GrammarElement |
expression1 |
private GrammarElement |
expression2 |
gelementsToValue
Constructor and Description |
---|
Greater(GrammarElement e,
GrammarElement f)
Represents a greater instruction that can be executed
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this language construct in some context.
|
java.lang.String |
toString() |
private GrammarElement expression1
private GrammarElement expression2
public Greater(GrammarElement e, GrammarElement f)
e
- the first element in the greaterf
- the second element in the greaterpublic java.lang.Object evaluate(Context c)
GrammarElement
evaluate
in class Instruction
c
- context in which the evaluation takes placepublic java.lang.String toString()
toString
in class java.lang.Object