1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * @author Matthieu Casanova
6 public class ListExpression extends Expression {
9 public Expression expression;
11 public ListExpression(String[] vars,
12 Expression expression,
15 super(sourceStart, sourceEnd);
17 this.expression = expression;
20 public ListExpression(String[] vars,
23 super(sourceStart, sourceEnd);
28 * Return the expression as String.
29 * @return the expression
31 public String toStringExpression() {
32 final StringBuffer buff = new StringBuffer("list(");
33 for (int i = 0; i < vars.length; i++) {
42 if (expression != null) {
44 buff.append(expression.toStringExpression());
46 return buff.toString();