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 char[] label, final Statement statement, final int sourceStart, final int sourceEnd) {
15 super(sourceStart, sourceEnd);
17 this.statement = statement;
21 * Return the object into String.
22 * It should be overriden
25 public String toString() {
26 return new String(label) + statement.toString();
30 * Return the object into String.
31 * @param tab how many tabs (not used here
34 public String toString(final int tab) {
35 return tabString(tab) + toString();
39 * Get the variables from outside (parameters, globals ...)
40 * @return the variables from outside
42 public List getOutsideVariable() {
43 return statement.getOutsideVariable();
47 * get the modified variables.
48 * @return the variables modified
50 public List getModifiedVariable() {
51 return statement.getModifiedVariable();
55 * Get the variables used.
56 * @return the variables used
58 public List getUsedVariable() {
59 return statement.getUsedVariable();