package net.sourceforge.phpdt.internal.compiler.ast;
+import java.util.List;
+import java.util.ArrayList;
+
/**
* @author Matthieu Casanova
*/
public Expression prefix;
public Expression vars;
- public ArrayDeclarator(Expression prefix,
- Expression vars,
- int sourceEnd) {
+ public ArrayDeclarator(final Expression prefix,
+ final Expression vars,
+ final int sourceEnd) {
super(prefix.sourceStart, sourceEnd);
this.prefix = prefix;
this.vars = vars;
buff.append(']');
return buff.toString();
}
+
+ /**
+ * Get the variables from outside (parameters, globals ...)
+ * @return the variables from outside
+ */
+ public List getOutsideVariable() {
+ return new ArrayList();
+ }
+
+ /**
+ * get the modified variables.
+ * @return the variables from we change value
+ */
+ public List getModifiedVariable() {
+ final ArrayList list = new ArrayList();
+ list.addAll(prefix.getModifiedVariable());
+ list.addAll(vars.getModifiedVariable());
+ return list;
+ }
+
+ /**
+ * Get the variables used.
+ * @return the variables used
+ */
+ public List getUsedVariable() {
+ final ArrayList list = new ArrayList();
+ list.addAll(prefix.getUsedVariable());
+ list.addAll(vars.getUsedVariable());
+ return list;
+ }
}