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 ...)
44 public void getOutsideVariable(final List list) {
45 statement.getOutsideVariable(list);
49 * get the modified variables.
51 public void getModifiedVariable(final List list) {
52 statement.getModifiedVariable(list);
56 * Get the variables used.
58 public void getUsedVariable(final List list) {
59 statement.getUsedVariable(list);