Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Else.java
index bf00a5e..47748bc 100644 (file)
@@ -7,10 +7,10 @@ import java.util.List;
  * it's else
  * @author Matthieu Casanova
  */
-public class Else extends Statement {
+public final class Else extends Statement {
 
   /** the statements. */
-  public Statement[] statements;
+  private final Statement[] statements;
 
   /**
    * An else statement bad version ( : endif).
@@ -35,8 +35,8 @@ public class Else extends Statement {
               final int sourceStart,
               final int sourceEnd) {
     super(sourceStart, sourceEnd);
-    this.statements = new Statement[1];
-    this.statements[0] = statement;
+    statements = new Statement[1];
+    statements[0] = statement;
   }
 
   /**
@@ -57,6 +57,8 @@ public class Else 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 < statements.length; i++) {
@@ -66,6 +68,8 @@ public class Else 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 < statements.length; i++) {
@@ -75,6 +79,8 @@ public class Else 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 < statements.length; i++) {