+++ /dev/null
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-/**
- * @author Matthieu Casanova
- */
-public class ArrayInitializer extends Expression {
-
- public ArrayVariableDeclaration[] vars;
-
- public ArrayInitializer(ArrayVariableDeclaration[] vars,
- int sourceStart,
- int sourceEnd) {
- super(sourceStart, sourceEnd);
- this.vars = vars;
- }
-
- /**
- * Return the expression as String.
- * @return the expression
- */
- public String toStringExpression() {
- final StringBuffer buff = new StringBuffer("array(");
- for (int i = 0; i < vars.length; i++) {
- ArrayVariableDeclaration var = vars[i];
- if (var != null) {
- buff.append(var.toStringExpression());
- }
- if (i != 0) {
- buff.append(',');
- }
- }
- return buff.toString();
- }
-}