Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / BranchStatement.java
index d64a352..3013a50 100644 (file)
@@ -3,22 +3,25 @@ package net.sourceforge.phpdt.internal.compiler.ast;
 import java.util.List;
 
 /**
- * Here is a branchstatement : break or continue
+ * Here is a branchstatement : break or continue.
  * @author Matthieu Casanova
  */
 public abstract class BranchStatement extends Statement {
 
-  public Expression expression;
+  /** The label (if there is one). */
+  protected final Expression expression;
 
-  public BranchStatement(final Expression expression, final int sourceStart, final int sourceEnd) {
+  protected BranchStatement(final Expression expression, final int sourceStart, final int sourceEnd) {
     super(sourceStart, sourceEnd);
     this.expression = expression;
   }
 
   /**
    * Get the variables from outside (parameters, globals ...)
+   *
+   * @param list the list where we will put variables
    */
-  public void getOutsideVariable(final List list) {
+  public final void getOutsideVariable(final List list) {
     if (expression != null) {
       expression.getOutsideVariable(list);
     }
@@ -26,8 +29,10 @@ public abstract class BranchStatement extends Statement {
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
-  public void getModifiedVariable(final List list) {
+  public final void getModifiedVariable(final List list) {
     if (expression != null) {
     expression.getModifiedVariable(list);
     }
@@ -35,8 +40,10 @@ public abstract class BranchStatement extends Statement {
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
-  public void getUsedVariable(final List list) {
+  public final void getUsedVariable(final List list) {
     if (expression != null) {
       expression.getUsedVariable(list);
     }