1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * This variable declaration do not extend AbstractVariableDeclaration because
5 * it could take Expression as key
6 * @author Matthieu Casanova
8 public class ArrayVariableDeclaration extends Expression {
10 public Expression key,value;
12 public ArrayVariableDeclaration(Expression key,Expression value) {
13 super(key.sourceStart, value.sourceEnd);
19 * Return the expression as String.
20 * @return the expression
22 public String toStringExpression() {
23 final StringBuffer buff = new StringBuffer();
24 buff.append(key.toStringExpression());
27 buff.append(value.toStringExpression());
29 return buff.toString();