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, Expression expression, int sourceStart, int sourceEnd) {
12 super(sourceStart, sourceEnd);
14 this.expression = expression;
18 * Return the expression as String.
19 * @return the expression
21 public String toStringExpression() {
22 final StringBuffer buff = new StringBuffer("list(");
23 for (int i = 0; i < vars.length; i++) {
32 if (expression != null) {
34 buff.append(expression.toStringExpression());
36 return buff.toString();