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);
18 public ArrayVariableDeclaration(Expression key,int sourceEnd) {
19 super(key.sourceStart, sourceEnd);
23 * Return the expression as String.
24 * @return the expression
26 public String toStringExpression() {
27 final StringBuffer buff = new StringBuffer();
28 buff.append(key.toStringExpression());
31 buff.append(value.toStringExpression());
33 return buff.toString();