--- /dev/null
+package net.sourceforge.phpdt.internal.compiler.ast;
+
+/**
+ * @author Matthieu Casanova
+ */
+public class LabeledStatement extends Statement {
+
+ public char[] label;
+
+ public Statement statement;
+
+ public LabeledStatement(char[] label, Statement statement, int sourceStart, 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 new String(label) + statement.toString();
+ }
+
+ /**
+ * Return the object into String.
+ * @param tab how many tabs (not used here
+ * @return a String
+ */
+ public String toString(int tab) {
+ return tabString(tab) + toString();
+ }
+}