1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * Here is a branchstatement : break or continue.
7 * @author Matthieu Casanova
9 public abstract class BranchStatement extends Statement {
11 /** The label (if there is one). */
12 protected final Expression expression;
14 protected 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 * @param list the list where we will put variables
24 public final void getOutsideVariable(final List list) {
25 if (expression != null) {
26 expression.getOutsideVariable(list);
31 * get the modified variables.
33 * @param list the list where we will put variables
35 public final void getModifiedVariable(final List list) {
36 if (expression != null) {
37 expression.getModifiedVariable(list);
42 * Get the variables used.
44 * @param list the list where we will put variables
46 public final void getUsedVariable(final List list) {
47 if (expression != null) {
48 expression.getUsedVariable(list);