| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 6 | 0.952 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 397 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java |
| 2 | 7 | 1293 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFlattener.java |
| ||||
/*
* @see ASTVisitor#visit(DoStatement)
*/
public boolean visit(DoStatement node) {
this.result.append("do "); //$NON-NLS-1$
getChildNode(node, DoStatement.BODY_PROPERTY).accept(this );
this.result.append(" while ("); //$NON-NLS-1$
getChildNode(node, DoStatement.EXPRESSION_PROPERTY).accept(this );
this.result.append(");"); //$NON-NLS-1$
return false;
}
|
| ||||
/* (non-Javadoc)
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SingleMemberAnnotation)
*/
public boolean visit(SingleMemberAnnotation node) {
this.result.append('@');
getChildNode(node, SingleMemberAnnotation.TYPE_NAME_PROPERTY).accept(this );
this.result.append('(');
getChildNode(node, SingleMemberAnnotation.VALUE_PROPERTY).accept(this );
this.result.append(')');
return false;
}
|
| |||
/*
* @see ASTVisitor#visit(DoStatement)
*/
/* (non-Javadoc)
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SingleMemberAnnotation)
*/
public boolean visit( [[#variable63377720]] node) {
this.result.append( [[#variable63377680]]); //$NON-NLS-1$
getChildNode(node, [[#variable63377720]]. [[#variable633775e0]]).accept(this );
this.result.append( [[#variable63377540]]); //$NON-NLS-1$
getChildNode(node, [[#variable63377720]]. [[#variable633774a0]]).accept(this );
this.result.append( [[#variable63377440]]); //$NON-NLS-1$
return false;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#63377720]] | DoStatement |
| 1 | 2 | [[#63377720]] | SingleMemberAnnotation |
| 2 | 1 | [[#63377680]] | "do " |
| 2 | 2 | [[#63377680]] | '@' |
| 3 | 1 | [[#633775e0]] | BODY_PROPERTY |
| 3 | 2 | [[#633775e0]] | TYPE_NAME_PROPERTY |
| 4 | 1 | [[#63377540]] | " while (" |
| 4 | 2 | [[#63377540]] | '(' |
| 5 | 1 | [[#633774a0]] | EXPRESSION_PROPERTY |
| 5 | 2 | [[#633774a0]] | VALUE_PROPERTY |
| 6 | 1 | [[#63377440]] | ");" |
| 6 | 2 | [[#63377440]] | ')' |