1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
7 * @author Matthieu Casanova
9 public class PrintExpression extends Expression {
11 public Expression expression;
13 public PrintExpression(final Expression expression, final int sourceStart, final int sourceEnd) {
14 super(sourceStart, sourceEnd);
15 this.expression = expression;
19 * Return the expression as String.
20 * @return the expression
22 public String toStringExpression() {
23 return "print " + expression.toStringExpression();
27 * Get the variables from outside (parameters, globals ...)
29 public void getOutsideVariable(final List list) {
30 expression.getOutsideVariable(list);
34 * get the modified variables.
36 public void getModifiedVariable(final List list) {
37 expression.getModifiedVariable(list);
41 * Get the variables used.
43 public void getUsedVariable(final List list) {
44 expression.getUsedVariable(list);