| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 3 | 3 | 0.968 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 243 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java |
| 2 | 14 | 277 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java |
| 3 | 14 | 305 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/compiler/SourceElementParser.java |
| ||||
protected void classInstanceCreation(boolean alwaysQualified) {
boolean previousFlag = reportReferenceInfo;
reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
super.classInstanceCreation(alwaysQualified);
reportReferenceInfo = previousFlag;
if (reportReferenceInfo) {
AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
TypeReference typeRef = alloc.type;
requestor.acceptConstructorReference(
typeRef instanceof SingleTypeReference ?
((SingleTypeReference) typeRef).token:
CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'),
alloc.arguments == null ? 0: alloc.arguments.length,
alloc.sourceStart );
}
}
|
| ||||
protected void consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() {
boolean previousFlag = reportReferenceInfo;
reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
super.consumeClassInstanceCreationExpressionQualifiedWithTypeArguments();
reportReferenceInfo = previousFlag;
if (reportReferenceInfo) {
AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
TypeReference typeRef = alloc.type;
requestor.acceptConstructorReference(
typeRef instanceof SingleTypeReference ?
((SingleTypeReference) typeRef).token:
CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'),
alloc.arguments == null ? 0: alloc.arguments.length,
alloc.sourceStart );
}
}
|
| ||||
protected void consumeClassInstanceCreationExpressionWithTypeArguments() {
boolean previousFlag = reportReferenceInfo;
reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
super.consumeClassInstanceCreationExpressionWithTypeArguments();
reportReferenceInfo = previousFlag;
if (reportReferenceInfo) {
AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
TypeReference typeRef = alloc.type;
requestor.acceptConstructorReference(
typeRef instanceof SingleTypeReference ?
((SingleTypeReference) typeRef).token:
CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'),
alloc.arguments == null ? 0: alloc.arguments.length,
alloc.sourceStart );
}
}
|
| |||
protected void [[#variable5a1499e0]] [[#variable5a149960]]{
boolean previousFlag = reportReferenceInfo;
reportReferenceInfo = false; // not to see the type reference reported in super call to getTypeReference(...)
super. [[#variable5a1499e0]] [[#variable5a1498e0]];
reportReferenceInfo = previousFlag;
if (reportReferenceInfo) {
AllocationExpression alloc = (AllocationExpression) expressionStack[expressionPtr];
TypeReference typeRef = alloc.type;
requestor.acceptConstructorReference(typeRef instanceof SingleTypeReference ? ((SingleTypeReference) typeRef).token: CharOperation.concatWith(alloc.type.getParameterizedTypeName(), '.'), alloc.arguments == null ? 0: alloc.arguments.length, alloc.sourceStart);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5a1499e0]] | classInstanceCreation |
| 1 | 2 | [[#5a1499e0]] | consumeClassInstanceCreationExpressionQualifiedWithTypeArguments |
| 1 | 3 | [[#5a1499e0]] | consumeClassInstanceCreationExpressionWithTypeArguments |
| 2 | 1 | [[#5a149960]] | (boolean alwaysQualified) |
| 2 | 2 | [[#5a149960]] | () |
| 2 | 3 | [[#5a149960]] | () |
| 3 | 1 | [[#5a1498e0]] | (alwaysQualified) |
| 3 | 2 | [[#5a1498e0]] | () |
| 3 | 3 | [[#5a1498e0]] | () |