*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / LabeledStatement.java
index 89838a8..ea7a95c 100644 (file)
@@ -1,5 +1,7 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import java.util.List;
+
 /**
  * @author Matthieu Casanova
  */
@@ -9,7 +11,7 @@ public class LabeledStatement extends Statement {
 
   public Statement statement;
 
-  public LabeledStatement(char[] label, Statement statement, int sourceStart, int sourceEnd) {
+  public LabeledStatement(final char[] label, final Statement statement, final int sourceStart, final int sourceEnd) {
     super(sourceStart, sourceEnd);
     this.label = label;
     this.statement = statement;
@@ -29,7 +31,31 @@ public class LabeledStatement extends Statement {
    * @param tab how many tabs (not used here
    * @return a String
    */
-  public String toString(int tab) {
+  public String toString(final int tab) {
     return tabString(tab) + toString();
   }
+
+    /**
+   * Get the variables from outside (parameters, globals ...)
+   * @return the variables from outside
+   */
+  public List getOutsideVariable() {
+    return statement.getOutsideVariable();
+  }
+
+  /**
+   * get the modified variables.
+   * @return the variables modified
+   */
+  public List getModifiedVariable() {
+    return statement.getModifiedVariable();
+  }
+
+  /**
+   * Get the variables used.
+   * @return the variables used
+   */
+  public List getUsedVariable() {
+    return statement.getUsedVariable();
+  }
 }