package net.sourceforge.phpdt.internal.compiler.ast;
+import java.util.List;
+
/**
* @author Matthieu Casanova
*/
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;
* @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();
+ }
}