public class Backward extends Instruction
Modifier and Type | Field and Description |
---|---|
private GrammarElement |
distance |
gelementsToValue
Constructor and Description |
---|
Backward(GrammarElement e)
Represents a backward 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 GrammarElement distance
public Backward(GrammarElement e)
e
- the expression to negatepublic 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