public String toStringExpression() {
final StringBuffer buff = new StringBuffer("array(");
for (int i = 0; i < vars.length; i++) {
- final ArrayVariableDeclaration var = vars[i];
if (i != 0) {
buff.append(",");
}
- buff.append(var.toStringExpression());
+ if (vars[i] != null) {
+ buff.append(vars[i].toStringExpression());
+ }
}
buff.append(")");
return buff.toString();
}
- /**
+ /**
* Get the variables from outside (parameters, globals ...)
* @return the variables from outside
*/
public List getModifiedVariable() {
final ArrayList list = new ArrayList();
for (int i = 0; i < vars.length; i++) {
- list.addAll(vars[i].getModifiedVariable());
+ if (vars[i] != null) {
+ list.addAll(vars[i].getModifiedVariable());
+ }
}
return list;
}
public List getUsedVariable() {
final ArrayList list = new ArrayList();
for (int i = 0; i < vars.length; i++) {
- list.addAll(vars[i].getUsedVariable());
+ if (vars[i] != null) {
+ list.addAll(vars[i].getUsedVariable());
+ }
}
return list;
}