Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.987 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 102 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointFieldLocator.java |
2 | 16 | 166 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointMethodLocator.java |
| ||||
/** * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TypeDeclaration) */ public boolean visit(TypeDeclaration node) { if (containsPosition(node)) { // visit the field declarations FieldDeclaration[] fields = node.getFields(); for (int i = 0, length = fields.length; i < length && !fFound; i++) { fields[i].accept(this ); } if ( !fFound) { // visit inner types TypeDeclaration[] types = node.getTypes(); for (int i = 0, length = types.length; i < length && !fFound; i++) { types[i].accept(this ); } } } return false; } |
| ||||
/** * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TypeDeclaration) */ public boolean visit(TypeDeclaration node) { if (containsPosition(node)) { // visit the methode declarations MethodDeclaration[] methods = node.getMethods(); for (int i = 0, length = methods.length; i < length && !fFound; i++) { methods[i].accept(this ); } if ( !fFound) { // visit inner types TypeDeclaration[] types = node.getTypes(); for (int i = 0, length = types.length; i < length && !fFound; i++) { types[i].accept(this ); } } } return false; } |
| |||
/** * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TypeDeclaration) */ public boolean visit(TypeDeclaration node) { if (containsPosition(node)) { [[#variable60b856e0]][] [[#variable60b85680]]= node. [[#variable60b855c0]](); for (int i = 0, length = [[#variable60b85680]].length; i < length && !fFound; i++) { [[#variable60b85680]][i].accept(this ); } if ( !fFound) { // visit inner types TypeDeclaration[] types = node.getTypes(); for (int i = 0, length = types.length; i < length && !fFound; i++) { types[i].accept(this ); } } } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#60b856e0]] | // visit the methode declarations MethodDeclaration |
1 | 2 | [[#60b856e0]] | // visit the field declarations FieldDeclaration |
2 | 1 | [[#60b85680]] | methods |
2 | 2 | [[#60b85680]] | fields |
3 | 1 | [[#60b855c0]] | getMethods |
3 | 2 | [[#60b855c0]] | getFields |