1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * @author Matthieu Casanova
6 public class ArrayInitializer extends Expression {
8 public ArrayVariableDeclaration[] vars;
10 public ArrayInitializer(ArrayVariableDeclaration[] vars,
13 super(sourceStart, sourceEnd);
18 * Return the expression as String.
19 * @return the expression
21 public String toStringExpression() {
22 final StringBuffer buff = new StringBuffer("array(");
23 for (int i = 0; i < vars.length; i++) {
24 ArrayVariableDeclaration var = vars[i];
26 buff.append(var.toStringExpression());
32 return buff.toString();