1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
7 * @author Matthieu Casanova
9 public class ArrayDeclarator extends AbstractSuffixExpression {
11 public Expression prefix;
12 public Expression vars;
14 public ArrayDeclarator(final Expression prefix,
15 final Expression vars,
16 final int sourceEnd) {
17 super(prefix.sourceStart, sourceEnd);
23 * Return the expression as String.
24 * @return the expression
26 public String toStringExpression() {
27 final StringBuffer buff = new StringBuffer(prefix.toStringExpression());
30 buff.append(vars.toStringExpression());
33 return buff.toString();
37 * Get the variables from outside (parameters, globals ...)
38 * @return the variables from outside
40 public List getOutsideVariable() {
41 return new ArrayList();
45 * get the modified variables.
46 * @return the variables from we change value
48 public List getModifiedVariable() {
49 final ArrayList list = new ArrayList();
50 list.addAll(prefix.getModifiedVariable());
51 list.addAll(vars.getModifiedVariable());
56 * Get the variables used.
57 * @return the variables used
59 public List getUsedVariable() {
60 final ArrayList list = new ArrayList();
61 list.addAll(prefix.getUsedVariable());
62 list.addAll(vars.getUsedVariable());