package net.sourceforge.phpdt.internal.compiler.ast;
import java.util.List;
-import java.util.ArrayList;
/**
* a variable declaration in an array().
/**
* Get the variables from outside (parameters, globals ...)
- * @return the variables from outside
*/
- public List getOutsideVariable() {
- return new ArrayList();
+ public void getOutsideVariable(final List list) {
}
/**
* get the modified variables.
- * @return the variables from we change value
*/
- public List getModifiedVariable() {
- final ArrayList list = new ArrayList();
- list.addAll(key.getModifiedVariable());
+ public void getModifiedVariable(final List list) {
+ key.getModifiedVariable(list);
if (value != null) {
- list.addAll(value.getModifiedVariable());
+ value.getModifiedVariable(list);
}
- return list;
}
/**
* Get the variables used.
- * @return the variables used
*/
- public List getUsedVariable() {
- final ArrayList list = new ArrayList();
+ public void getUsedVariable(final List list) {
+ key.getUsedVariable(list);
if (value != null) {
- list.addAll(value.getUsedVariable());
+ value.getUsedVariable(list);
}
- return list;
}
}