public class Print extends Instruction
| Modifier and Type | Field and Description |
|---|---|
private GrammarElement |
expression |
gelementsToValue| Constructor and Description |
|---|
Print(GrammarElement e)
Represents a Print expression
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(Context c)
Evaluate the expression and println it.
|
java.lang.String |
toString() |
private GrammarElement expression
public Print(GrammarElement e)
e - public java.lang.Object evaluate(Context c)
evaluate in class Instructionc - is the Context in which the evaluation occurspublic java.lang.String toString()
toString in class java.lang.Object