Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 5 | 6 | 0.953 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 333 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java |
2 | 6 | 344 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java |
3 | 6 | 311 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java |
4 | 6 | 322 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java |
5 | 6 | 1550 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java |
| ||||
/* * @see ASTVisitor#visit(CastExpression) */ public boolean visit(CastExpression node) { this.buffer.append("("); //$NON-NLS-1$ node.getType().accept(this ); this.buffer.append(")"); //$NON-NLS-1$ node.getExpression().accept(this ); return false; } |
| ||||
/* * @see ASTVisitor#visit(CatchClause) */ public boolean visit(CatchClause node) { this.buffer.append("catch ("); //$NON-NLS-1$ node.getException().accept(this ); this.buffer.append(") "); //$NON-NLS-1$ node.getBody().accept(this ); return false; } |
| ||||
/* * @see ASTVisitor#visit(CastExpression) */ public boolean visit(CastExpression node) { this.fBuffer.append("("); //$NON-NLS-1$ node.getType().accept(this ); this.fBuffer.append(")"); //$NON-NLS-1$ node.getExpression().accept(this ); return false; } |
| ||||
/* * @see ASTVisitor#visit(CatchClause) */ public boolean visit(CatchClause node) { this.fBuffer.append("catch ("); //$NON-NLS-1$ node.getException().accept(this ); this.fBuffer.append(") "); //$NON-NLS-1$ node.getBody().accept(this ); return false; } |
| ||||
/* * @see ASTVisitor#visit(WhileStatement) */ public boolean visit(WhileStatement node) { this.fBuffer.append("while ("); //$NON-NLS-1$ node.getExpression().accept(this ); this.fBuffer.append(") "); //$NON-NLS-1$ node.getBody().accept(this ); return false; } |
| |||
/* * @see ASTVisitor#visit(CastExpression) */ /* * @see ASTVisitor#visit(CatchClause) */ /* * @see ASTVisitor#visit(WhileStatement) */ public boolean visit( [[#variableb8097020]] node) { this. [[#variableb8096f80]].append( [[#variableb8096ee0]]); //$NON-NLS-1$ node. [[#variableb8096e80]]().accept(this ); this. [[#variableb8096f80]].append( [[#variableb8096e00]]); //$NON-NLS-1$ node. [[#variableb8096da0]]().accept(this ); return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8097020]] | CastExpression |
1 | 2 | [[#b8097020]] | CatchClause |
1 | 3 | [[#b8097020]] | CatchClause |
1 | 4 | [[#b8097020]] | WhileStatement |
1 | 5 | [[#b8097020]] | CastExpression |
2 | 1 | [[#b8096f80]] | fBuffer |
2 | 2 | [[#b8096f80]] | fBuffer |
2 | 3 | [[#b8096f80]] | buffer |
2 | 4 | [[#b8096f80]] | fBuffer |
2 | 5 | [[#b8096f80]] | buffer |
3 | 1 | [[#b8096ee0]] | "(" |
3 | 2 | [[#b8096ee0]] | "catch (" |
3 | 3 | [[#b8096ee0]] | "catch (" |
3 | 4 | [[#b8096ee0]] | "while (" |
3 | 5 | [[#b8096ee0]] | "(" |
4 | 1 | [[#b8096e80]] | getType |
4 | 2 | [[#b8096e80]] | getException |
4 | 3 | [[#b8096e80]] | getException |
4 | 4 | [[#b8096e80]] | getExpression |
4 | 5 | [[#b8096e80]] | getType |
5 | 1 | [[#b8096e00]] | ")" |
5 | 2 | [[#b8096e00]] | ") " |
5 | 3 | [[#b8096e00]] | ") " |
5 | 4 | [[#b8096e00]] | ") " |
5 | 5 | [[#b8096e00]] | ")" |
6 | 1 | [[#b8096da0]] | getExpression |
6 | 2 | [[#b8096da0]] | getBody |
6 | 3 | [[#b8096da0]] | getBody |
6 | 4 | [[#b8096da0]] | getBody |
6 | 5 | [[#b8096da0]] | getExpression |