Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / LabeledStatement.java
index d0f38f0..3acad54 100644 (file)
@@ -5,11 +5,11 @@ import java.util.List;
 /**
  * @author Matthieu Casanova
  */
-public class LabeledStatement extends Statement {
+public final class LabeledStatement extends Statement {
 
-  public String label;
+  private final String label;
 
-  public Statement statement;
+  private final Statement statement;
 
   public LabeledStatement(final String label,
                           final Statement statement,
@@ -23,6 +23,7 @@ public class LabeledStatement extends Statement {
   /**
    * Return the object into String.
    * It should be overriden
+   * 
    * @return a String
    */
   public String toString() {
@@ -31,6 +32,7 @@ public class LabeledStatement extends Statement {
 
   /**
    * Return the object into String.
+   * 
    * @param tab how many tabs (not used here
    * @return a String
    */
@@ -38,8 +40,10 @@ public class LabeledStatement extends Statement {
     return tabString(tab) + toString();
   }
 
-    /**
+  /**
    * Get the variables from outside (parameters, globals ...)
+   *
+   * @param list the list where we will put variables
    */
   public void getOutsideVariable(final List list) {
     statement.getOutsideVariable(list);
@@ -47,6 +51,8 @@ public class LabeledStatement extends Statement {
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
   public void getModifiedVariable(final List list) {
     statement.getModifiedVariable(list);
@@ -54,6 +60,8 @@ public class LabeledStatement extends Statement {
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
   public void getUsedVariable(final List list) {
     statement.getUsedVariable(list);