Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / ElseIf.java
index dff3ecd..b0ff581 100644 (file)
@@ -1,21 +1,18 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
-import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;
-
 import java.util.List;
-import java.util.ArrayList;
 
 /**
  * An elseif statement.
  * @author Matthieu Casanova
  */
-public class ElseIf extends Statement {
+public final class ElseIf extends Statement {
 
   /** The condition. */
-  public Expression condition;
+  private final Expression condition;
 
   /** The statements. */
-  public Statement[] statements;
+  private final Statement[] statements;
 
   public ElseIf(final Expression condition, final Statement[] statements, final int sourceStart, final int sourceEnd) {
     super(sourceStart, sourceEnd);
@@ -42,6 +39,8 @@ public class ElseIf 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++) {
@@ -51,6 +50,8 @@ public class ElseIf 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++) {
@@ -61,6 +62,8 @@ public class ElseIf 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++) {