+++ /dev/null
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-import java.util.List;
-
-/**
- * @author Matthieu Casanova
- */
-public class LabeledStatement extends Statement {
-
- public String label;
-
- public Statement statement;
-
- public LabeledStatement(final String label,
- final Statement statement,
- final int sourceStart,
- final int sourceEnd) {
- super(sourceStart, sourceEnd);
- this.label = label;
- this.statement = statement;
- }
-
- /**
- * Return the object into String.
- * It should be overriden
- * @return a String
- */
- public String toString() {
- return label + statement.toString();
- }
-
- /**
- * Return the object into String.
- * @param tab how many tabs (not used here
- * @return a String
- */
- 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();
- }
-}