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 ...)
 
  21    * @return the variables from outside
 
  23   public List getOutsideVariable() {
 
  24     if (expression == null) {
 
  25       return new ArrayList();
 
  27     return expression.getOutsideVariable();
 
  31    * get the modified variables.
 
  32    * @return the variables from we change value
 
  34   public List getModifiedVariable() {
 
  35     if (expression == null) {
 
  36       return new ArrayList();
 
  38     return expression.getModifiedVariable();
 
  42    * Get the variables used.
 
  43    * @return the variables used
 
  45   public List getUsedVariable() {
 
  46     if (expression == null) {
 
  47       return new ArrayList();
 
  49     return expression.getUsedVariable();