public class Difference extends Instruction
Modifier and Type | Field and Description |
---|---|
private GrammarElement |
expression1 |
private GrammarElement |
expression2 |
gelementsToValue
Constructor and Description |
---|
Difference(GrammarElement e,
GrammarElement f)
Represents a difference 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 expression1
private GrammarElement expression2
public Difference(GrammarElement e, GrammarElement f)
e
- the first element in the differencef
- the second element in the differencepublic 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