1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
7 * Here is a branchstatement : break or continue
8 * @author Matthieu Casanova
10 public abstract class BranchStatement extends Statement {
12 public Expression expression;
14 public BranchStatement(final Expression expression, final int sourceStart, final int sourceEnd) {
15 super(sourceStart, sourceEnd);
16 this.expression = expression;
20 * Get the variables from outside (parameters, globals ...)
22 public void getOutsideVariable(final List list) {
23 if (expression != null) {
24 expression.getOutsideVariable(list);
29 * get the modified variables.
31 public void getModifiedVariable(final List list) {
32 if (expression != null) {
33 expression.getModifiedVariable(list);
38 * Get the variables used.
40 public void getUsedVariable(final List list) {
41 if (expression != null) {
42 expression.getUsedVariable(list);