public class NotEqual extends Instruction
The value returned by evaluating a NOTEQUAL instruction is the instruction itself, representing the first and second GrammarElements.
Modifier and Type | Field and Description |
---|---|
private GrammarElement |
expressionOne |
private GrammarElement |
expressionTwo |
gelementsToValue
Constructor and Description |
---|
NotEqual(GrammarElement e,
GrammarElement f)
Constructs a NOTEQUAL instruction that can be executed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Context c)
Evaluate this instruction in a Context.
|
java.lang.String |
toString() |
private GrammarElement expressionOne
private GrammarElement expressionTwo
public NotEqual(GrammarElement e, GrammarElement f)
e
- the first number to comparef
- the second number to comparepublic java.lang.Object evaluate(Context c)
evaluate
in class Instruction
c
- the Context for the evaluationpublic java.lang.String toString()
toString
in class java.lang.Object