Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / IfStatement.java
index 824b721..bb2e3a0 100644 (file)
@@ -10,12 +10,12 @@ import java.util.List;
  * else statement
  * @author Matthieu Casanova
  */
-public class IfStatement extends Statement {
+public final class IfStatement extends Statement {
 
-  public Expression condition;
-  public Statement statement;
-  public ElseIf[] elseifs;
-  public Else els;
+  private final Expression condition;
+  private final Statement statement;
+  private final ElseIf[] elseifs;
+  private final Else els;
 
   /**
    * Create a new If statement.
@@ -64,6 +64,8 @@ public class IfStatement extends Statement {
 
   /**
    * Get the variables from outside (parameters, globals ...)
+   *
+   * @param list the list where we will put variables
    */
   public void getOutsideVariable(final List list) {
     condition.getOutsideVariable(list); // todo: check if unuseful
@@ -80,6 +82,8 @@ public class IfStatement extends Statement {
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
   public void getModifiedVariable(final List list) {
     condition.getModifiedVariable(list);
@@ -96,6 +100,8 @@ public class IfStatement extends Statement {
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
   public void getUsedVariable(final List list) {
     condition.getUsedVariable(list);