/* * @see ASTVisitor#visit(Block) */ public boolean visit(Block node) { this.fBuffer.append("{"); // $NON-NLS-1$ for (Iterator it = node.statements().iterator(); it.hasNext(); ) { Statement s = (Statement) it.next(); s.accept(this); } this.fBuffer.append("}"); // $NON-NLS-1$ return false; }
/* * @see ASTVisitor#visit(SwitchStatement) */ public boolean visit(SwitchStatement node) { this.fBuffer.append("switch ("); // $NON-NLS-1$ node.getExpression().accept(this); this.fBuffer.append(") "); // $NON-NLS-1$ this.fBuffer.append("{"); // $NON-NLS-1$ for (Iterator it = node.statements().iterator(); it.hasNext(); ) { Statement s = (Statement) it.next(); s.accept(this); } this.fBuffer.append("}"); // $NON-NLS-1$ return false; }