Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / LabeledStatement.java
index ea7a95c..3acad54 100644 (file)
@@ -5,13 +5,16 @@ import java.util.List;
 /**
  * @author Matthieu Casanova
  */
-public class LabeledStatement extends Statement {
+public final class LabeledStatement extends Statement {
 
-  public char[] label;
+  private final String label;
 
-  public Statement statement;
+  private final Statement statement;
 
-  public LabeledStatement(final char[] label, final Statement statement, final int sourceStart, final int sourceEnd) {
+  public LabeledStatement(final String label,
+                          final Statement statement,
+                          final int sourceStart,
+                          final int sourceEnd) {
     super(sourceStart, sourceEnd);
     this.label = label;
     this.statement = statement;
@@ -20,14 +23,16 @@ public class LabeledStatement extends Statement {
   /**
    * Return the object into String.
    * It should be overriden
+   * 
    * @return a String
    */
   public String toString() {
-    return new String(label) + statement.toString();
+    return label + statement.toString();
   }
 
   /**
    * Return the object into String.
+   * 
    * @param tab how many tabs (not used here
    * @return a String
    */
@@ -35,27 +40,30 @@ public class LabeledStatement extends Statement {
     return tabString(tab) + toString();
   }
 
-    /**
+  /**
    * Get the variables from outside (parameters, globals ...)
-   * @return the variables from outside
+   *
+   * @param list the list where we will put variables
    */
-  public List getOutsideVariable() {
-    return statement.getOutsideVariable();
+  public void getOutsideVariable(final List list) {
+    statement.getOutsideVariable(list);
   }
 
   /**
    * get the modified variables.
-   * @return the variables modified
+   *
+   * @param list the list where we will put variables
    */
-  public List getModifiedVariable() {
-    return statement.getModifiedVariable();
+  public void getModifiedVariable(final List list) {
+    statement.getModifiedVariable(list);
   }
 
   /**
    * Get the variables used.
-   * @return the variables used
+   *
+   * @param list the list where we will put variables
    */
-  public List getUsedVariable() {
-    return statement.getUsedVariable();
+  public void getUsedVariable(final List list) {
+    statement.getUsedVariable(list);
   }
 }