package net.sourceforge.phpdt.internal.compiler.ast;
+import java.util.List;
+import java.util.ArrayList;
+
/**
* Here is a branchstatement : break or continue
* @author Matthieu Casanova
public Expression expression;
- public BranchStatement(Expression expression,int sourceStart, int sourceEnd) {
+ public BranchStatement(final Expression expression, final int sourceStart, final int sourceEnd) {
super(sourceStart, sourceEnd);
this.expression = expression;
}
+
+ /**
+ * Get the variables from outside (parameters, globals ...)
+ */
+ public void getOutsideVariable(final List list) {
+ if (expression != null) {
+ expression.getOutsideVariable(list);
+ }
+ }
+
+ /**
+ * get the modified variables.
+ */
+ public void getModifiedVariable(final List list) {
+ if (expression != null) {
+ expression.getModifiedVariable(list);
+ }
+ }
+
+ /**
+ * Get the variables used.
+ */
+ public void getUsedVariable(final List list) {
+ if (expression != null) {
+ expression.getUsedVariable(list);
+ }
+ }
}