1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public class ArrayDeclarator extends AbstractVariable {
10 public AbstractVariable prefix;
11 public Expression var;
13 public ArrayDeclarator(final AbstractVariable prefix,
14 final Expression vars,
15 final int sourceEnd) {
16 super(prefix.sourceStart, sourceEnd);
22 * Return the expression as String.
23 * @return the expression
25 public String toStringExpression() {
26 final StringBuffer buff = new StringBuffer(prefix.toStringExpression());
29 buff.append(var.toStringExpression());
32 return buff.toString();
36 * Return the name of the variable.
37 * @return the name of the functionName variable
39 public String getName() {
40 return prefix.getName();
44 * Get the variables from outside (parameters, globals ...)
46 public void getOutsideVariable(final List list) {
50 * get the modified variables.
52 public void getModifiedVariable(final List list) {
53 prefix.getModifiedVariable(list);
55 var.getModifiedVariable(list);
60 * Get the variables used.
62 public void getUsedVariable(final List list) {
63 prefix.getUsedVariable(list);
65 var.getUsedVariable(list);