1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public final class PrintExpression extends Expression {
10 private final 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 * @param list the list where we will put variables
30 public void getOutsideVariable(final List list) {
31 expression.getOutsideVariable(list);
35 * get the modified variables.
37 * @param list the list where we will put variables
39 public void getModifiedVariable(final List list) {
40 expression.getModifiedVariable(list);
44 * Get the variables used.
46 * @param list the list where we will put variables
48 public void getUsedVariable(final List list) {
49 expression.getUsedVariable(list);