Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 4 | 0.968 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 274 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java |
2 | 9 | 383 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java |
3 | 9 | 727 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java |
| ||||
/* * @see ASTVisitor#visit(BreakStatement) */ public boolean visit(BreakStatement node) { this.result.append("break"); //$NON-NLS-1$ ASTNode label = getChildNode(node, BreakStatement.LABEL_PROPERTY); if (label != null) { this.result.append(' '); label.accept(this ); } this.result.append(';'); return false; } |
| ||||
/* * @see ASTVisitor#visit(ContinueStatement) */ public boolean visit(ContinueStatement node) { this.result.append("continue"); //$NON-NLS-1$ ASTNode label = getChildNode(node, ContinueStatement.LABEL_PROPERTY); if (label != null) { this.result.append(' '); label.accept(this ); } this.result.append(';'); return false; } |
| ||||
/* * @see ASTVisitor#visit(ReturnStatement) */ public boolean visit(ReturnStatement node) { this.result.append("return"); //$NON-NLS-1$ ASTNode expression = getChildNode(node, ReturnStatement.EXPRESSION_PROPERTY); if (expression != null) { this.result.append(' '); expression.accept(this ); } this.result.append(';'); return false; } |
| |||
/* * @see ASTVisitor#visit(BreakStatement) */ /* * @see ASTVisitor#visit(ContinueStatement) */ /* * @see ASTVisitor#visit(ReturnStatement) */ public boolean visit( [[#variable559ff200]] node) { this.result.append( [[#variable559ff1a0]]); //$NON-NLS-1$ ASTNode [[#variable559ff0e0]]= getChildNode(node, [[#variable559ff200]]. [[#variable559ff0c0]]); if ( [[#variable559ff0e0]]!= null) { this.result.append(' '); [[#variable559ff0e0]].accept(this ); } this.result.append(';'); return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#559ff200]] | BreakStatement |
1 | 2 | [[#559ff200]] | ContinueStatement |
1 | 3 | [[#559ff200]] | ReturnStatement |
2 | 1 | [[#559ff1a0]] | "break" |
2 | 2 | [[#559ff1a0]] | "continue" |
2 | 3 | [[#559ff1a0]] | "return" |
3 | 1 | [[#559ff0e0]] | label |
3 | 2 | [[#559ff0e0]] | label |
3 | 3 | [[#559ff0e0]] | expression |
4 | 1 | [[#559ff0c0]] | LABEL_PROPERTY |
4 | 2 | [[#559ff0c0]] | LABEL_PROPERTY |
4 | 3 | [[#559ff0c0]] | EXPRESSION_PROPERTY |