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 ...)
28 * @return the variables from outside
30 public List getOutsideVariable() {
31 return expression.getOutsideVariable();
35 * get the modified variables.
36 * @return the variables from we change value
38 public List getModifiedVariable() {
39 return expression.getModifiedVariable();
43 * Get the variables used.
44 * @return the variables used
46 public List getUsedVariable() {
47 return expression.getUsedVariable();