package net.sourceforge.phpdt.internal.compiler.ast;
+import java.util.List;
+import java.util.ArrayList;
+
/**
* @author Matthieu Casanova
*/
public Expression expression;
- public PrintExpression(Expression expression, int sourceStart, int sourceEnd) {
+ public PrintExpression(final Expression expression, final int sourceStart, final int sourceEnd) {
super(sourceStart, sourceEnd);
this.expression = expression;
}
public String toStringExpression() {
return "print " + expression.toStringExpression();
}
+
+ /**
+ * Get the variables from outside (parameters, globals ...)
+ */
+ public void getOutsideVariable(final List list) {
+ expression.getOutsideVariable(list);
+ }
+
+ /**
+ * get the modified variables.
+ */
+ public void getModifiedVariable(final List list) {
+ expression.getModifiedVariable(list);
+ }
+
+ /**
+ * Get the variables used.
+ */
+ public void getUsedVariable(final List list) {
+ expression.getUsedVariable(list);
+ }
}