CloneSet590


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6730.971class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1642
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
2652
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
3662
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
4672
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
5682
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
6692
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
76102
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java
Clone Instance
1
Line Count
6
Source Line
42
Source File
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);
}


Clone Instance
2
Line Count
6
Source Line
52
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java

/*
 * 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);
}


Clone Instance
3
Line Count
6
Source Line
62
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java

/*
 * 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);
}


Clone Instance
4
Line Count
6
Source Line
72
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java

/*
 *      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);
}


Clone Instance
5
Line Count
6
Source Line
82
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java

/*
 * 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);
}


Clone Instance
6
Line Count
6
Source Line
92
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java

/*
 * 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);
}


Clone Instance
7
Line Count
6
Source Line
102
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredElement.java

/*
 *      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);
}


Clone AbstractionParameter Count: 3Parameter Bindings

/*
 *      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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1624780]]
AbstractMethodDeclaration 
12[[#b1624780]]
Block 
13[[#b1624780]]
FieldDeclaration 
14[[#b1624780]]
ImportReference 
15[[#b1624780]]
LocalDeclaration 
16[[#b1624780]]
Statement 
17[[#b1624780]]
TypeDeclaration 
21[[#b1624700]]
methodDeclaration 
22[[#b1624700]]
nestedBlockDeclaration 
23[[#b1624700]]
fieldDeclaration 
24[[#b1624700]]
importReference 
25[[#b1624700]]
localDeclaration 
26[[#b1624700]]
statement 
27[[#b1624700]]
typeDeclaration 
31[[#b16246a0]]
declarationSourceStart 
32[[#b16246a0]]
sourceStart 
33[[#b16246a0]]
declarationSourceStart 
34[[#b16246a0]]
declarationSourceStart 
35[[#b16246a0]]
declarationSourceStart 
36[[#b16246a0]]
sourceStart 
37[[#b16246a0]]
declarationSourceStart