/* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { BreakStatement result = new BreakStatement(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.copyLeadingComment(this); result.setLabel((SimpleName) ASTNode.copySubtree(target, getLabel())); return result; }
/* * @see ASTVisitor#visit(BreakStatement) */ public boolean visit(BreakStatement node) { this.fBuffer.append("break"); // $NON-NLS-1$ if (node.getLabel() != null) { this.fBuffer.append(" "); // $NON-NLS-1$ node.getLabel().accept(this); } this.fBuffer.append(";"); // $NON-NLS-1$ return false; }
public boolean visit(BreakStatement node) { SimpleName label = node.getLabel(); if (fDefiningLabel != null && isSameLabel(label) && ASTNodes.isParent(label, fDefiningLabel)) { fResult.add(label); } return false; }