public class Right extends Instruction
Modifier and Type | Field and Description |
---|---|
private Expression |
rightExpression |
gelementsToValue
Constructor and Description |
---|
Right(Expression e)
Constructs a Right instruction that can be executed.
|
private Expression rightExpression
public Right(Expression e)
e
- number of steps to move forwardpublic 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