| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 7 | 3 | 0.971 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 42 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| 2 | 6 | 52 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| 3 | 6 | 62 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| 4 | 6 | 72 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| 5 | 6 | 82 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| 6 | 6 | 92 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| 7 | 6 | 102 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java |
| ||||
/*
* Record a method declaration
*/
public RecoveredElement add(AbstractMethodDeclaration methodDeclaration, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(methodDeclaration.declarationSourceStart - 1));
return this.parent.add(methodDeclaration, bracketBalanceValue);
}
|
| ||||
/*
* Record a nested block declaration
*/
public RecoveredElement add(Block nestedBlockDeclaration, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(nestedBlockDeclaration.sourceStart - 1));
return this.parent.add(nestedBlockDeclaration, bracketBalanceValue);
}
|
| ||||
/*
* Record a field declaration
*/
public RecoveredElement add(FieldDeclaration fieldDeclaration, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(fieldDeclaration.declarationSourceStart - 1));
return this.parent.add(fieldDeclaration, bracketBalanceValue);
}
|
| ||||
/*
* Record an import reference
*/
public RecoveredElement add(ImportReference importReference, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(importReference.declarationSourceStart - 1));
return this.parent.add(importReference, bracketBalanceValue);
}
|
| ||||
/*
* Record a local declaration
*/
public RecoveredElement add(LocalDeclaration localDeclaration, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(localDeclaration.declarationSourceStart - 1));
return this.parent.add(localDeclaration, bracketBalanceValue);
}
|
| ||||
/*
* Record a statement
*/
public RecoveredElement add(Statement statement, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(statement.sourceStart - 1));
return this.parent.add(statement, bracketBalanceValue);
}
|
| ||||
/*
* Record a type declaration
*/
public RecoveredElement add(TypeDeclaration typeDeclaration, int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null) return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd(typeDeclaration.declarationSourceStart - 1));
return this.parent.add(typeDeclaration, bracketBalanceValue);
}
|
| |||
/*
* Record a method declaration
*/
/*
* Record a nested block declaration
*/
/*
* Record a field declaration
*/
/*
* Record an import reference
*/
/*
* Record a local declaration
*/
/*
* Record a statement
*/
/*
* Record a type declaration
*/
public RecoveredElement add( [[#variableb1624780]] [[#variableb1624700]], int bracketBalanceValue) {
/* default behavior is to delegate recording to parent if any */
if (this.parent == null)
return this ; // ignore
this.updateSourceEndIfNecessary(this.previousAvailableLineEnd( [[#variableb1624700]]. [[#variableb16246a0]] - 1));
return this.parent.add( [[#variableb1624700]], bracketBalanceValue);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b1624780]] | AbstractMethodDeclaration |
| 1 | 2 | [[#b1624780]] | Block |
| 1 | 3 | [[#b1624780]] | FieldDeclaration |
| 1 | 4 | [[#b1624780]] | ImportReference |
| 1 | 5 | [[#b1624780]] | LocalDeclaration |
| 1 | 6 | [[#b1624780]] | Statement |
| 1 | 7 | [[#b1624780]] | TypeDeclaration |
| 2 | 1 | [[#b1624700]] | methodDeclaration |
| 2 | 2 | [[#b1624700]] | nestedBlockDeclaration |
| 2 | 3 | [[#b1624700]] | fieldDeclaration |
| 2 | 4 | [[#b1624700]] | importReference |
| 2 | 5 | [[#b1624700]] | localDeclaration |
| 2 | 6 | [[#b1624700]] | statement |
| 2 | 7 | [[#b1624700]] | typeDeclaration |
| 3 | 1 | [[#b16246a0]] | declarationSourceStart |
| 3 | 2 | [[#b16246a0]] | sourceStart |
| 3 | 3 | [[#b16246a0]] | declarationSourceStart |
| 3 | 4 | [[#b16246a0]] | declarationSourceStart |
| 3 | 5 | [[#b16246a0]] | declarationSourceStart |
| 3 | 6 | [[#b16246a0]] | sourceStart |
| 3 | 7 | [[#b16246a0]] | declarationSourceStart |