1 package net.sourceforge.phpdt.internal.compiler.ast;
4 * @author Matthieu Casanova
6 public class DefaultCase extends AbstractCase {
8 public DefaultCase(Statement[] statements, int sourceStart, int sourceEnd) {
9 super(statements, sourceStart, sourceEnd);
13 * Return the object into String.
14 * @param tab how many tabs (not used here
17 public String toString(int tab) {
18 final StringBuffer buff = new StringBuffer(tabString(tab));
19 buff.append("default : \n"); //$NON-NLS-1$
20 for (int i = 0; i < statements.length; i++) {
21 Statement statement = statements[i];
22 buff.append(statement.toString(tab + 9));
24 return buff.toString();