1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public class LabeledStatement extends Statement {
12 public Statement statement;
14 public LabeledStatement(final String label,
15 final Statement statement,
16 final int sourceStart,
17 final int sourceEnd) {
18 super(sourceStart, sourceEnd);
20 this.statement = statement;
24 * Return the object into String.
25 * It should be overriden
28 public String toString() {
29 return label + statement.toString();
33 * Return the object into String.
34 * @param tab how many tabs (not used here
37 public String toString(final int tab) {
38 return tabString(tab) + toString();
42 * Get the variables from outside (parameters, globals ...)
43 * @return the variables from outside
45 public List getOutsideVariable() {
46 return statement.getOutsideVariable();
50 * get the modified variables.
51 * @return the variables modified
53 public List getModifiedVariable() {
54 return statement.getModifiedVariable();
58 * Get the variables used.
59 * @return the variables used
61 public List getUsedVariable() {
62 return statement.getUsedVariable();