Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / SwitchStatement.java
index 5de7507..e12e122 100644 (file)
@@ -5,10 +5,10 @@ import java.util.List;
 /**
  * @author Matthieu Casanova
  */
-public class SwitchStatement extends Statement {
+public final class SwitchStatement extends Statement {
 
-  public Expression variable;
-  public AbstractCase[] cases;
+  private final Expression variable;
+  private final AbstractCase[] cases;
 
   public SwitchStatement(final Expression variable,
                          final AbstractCase[] cases,
@@ -38,6 +38,8 @@ public class SwitchStatement extends Statement {
 
   /**
    * Get the variables from outside (parameters, globals ...)
+   *
+   * @param list the list where we will put variables
    */
   public void getOutsideVariable(final List list) {
     for (int i = 0; i < cases.length; i++) {
@@ -47,6 +49,8 @@ public class SwitchStatement extends Statement {
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
   public void getModifiedVariable(final List list) {
     for (int i = 0; i < cases.length; i++) {
@@ -57,6 +61,8 @@ public class SwitchStatement extends Statement {
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
   public void getUsedVariable(final List list) {
     for (int i = 0; i < cases.length; i++) {