@Override public Void visitSwitchCase(SwitchCase node) { visitList(node.getLabels(), " ", " "); writer.print("case "); visit(node.getExpression()); writer.print(": "); visitList(node.getStatements(), " "); return null; }
/* * @see ASTVisitor#visit(SwitchCase) */ @Override public boolean visit(SwitchCase node) { if (node.isDefault()) { this.fBuffer.append("default :"); // $NON-NLS-1$ } else { this.fBuffer.append("case "); // $NON-NLS-1$ node.getExpression().accept(this); this.fBuffer.append(":"); // $NON-NLS-1$ } return false; }