1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public class PrintExpression extends Expression {
10 public Expression expression;
12 public PrintExpression(final Expression expression, final int sourceStart, final int sourceEnd) {
13 super(sourceStart, sourceEnd);
14 this.expression = expression;
18 * Return the expression as String.
19 * @return the expression
21 public String toStringExpression() {
22 return "print " + expression.toStringExpression();
26 * Get the variables from outside (parameters, globals ...)
28 public void getOutsideVariable(final List list) {
29 expression.getOutsideVariable(list);
33 * get the modified variables.
35 public void getModifiedVariable(final List list) {
36 expression.getModifiedVariable(list);
40 * Get the variables used.
42 public void getUsedVariable(final List list) {
43 expression.getUsedVariable(list);