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 public Expression expression;
13 public BranchStatement(final Expression expression, final int sourceStart, final int sourceEnd) {
14 super(sourceStart, sourceEnd);
15 this.expression = expression;
19 * Get the variables from outside (parameters, globals ...)
21 public void getOutsideVariable(final List list) {
22 if (expression != null) {
23 expression.getOutsideVariable(list);
28 * get the modified variables.
30 public void getModifiedVariable(final List list) {
31 if (expression != null) {
32 expression.getModifiedVariable(list);
37 * Get the variables used.
39 public void getUsedVariable(final List list) {
40 if (expression != null) {
41 expression.getUsedVariable(list);