| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 3 | 3 | 0.963 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 132 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java |
| 2 | 14 | 149 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java |
| 3 | 14 | 166 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationValueImpl.java |
| ||||
CompilationUnit getCompilationUnit()
{
final MirrorKind kind = _parent.kind();
switch (kind) {
case ANNOTATION_MIRROR:
return ((AnnotationMirrorImpl) _parent).getCompilationUnit();
case ANNOTATION_ELEMENT:
if (((EclipseDeclarationImpl) _parent).isBindingBased())
return ((AnnotationElementDeclarationImpl) _parent).getCompilationUnit();
else
return ((ASTBasedAnnotationElementDeclarationImpl) _parent).getCompilationUnit();
default:
throw new IllegalStateException(); // should never reach this point.
}
}
|
| ||||
public boolean isFromSource()
{
final MirrorKind kind = _parent.kind();
switch (kind) {
case ANNOTATION_MIRROR:
return ((AnnotationMirrorImpl) _parent).isFromSource();
case ANNOTATION_ELEMENT:
if (((EclipseDeclarationImpl) _parent).isBindingBased())
return ((AnnotationElementDeclarationImpl) _parent).isFromSource();
else
return ((ASTBasedAnnotationElementDeclarationImpl) _parent).isFromSource();
default:
throw new IllegalStateException(); // should never reach this point.
}
}
|
| ||||
public IFile getResource()
{
final MirrorKind kind = _parent.kind();
switch (kind) {
case ANNOTATION_MIRROR:
return ((AnnotationMirrorImpl) _parent).getResource();
case ANNOTATION_ELEMENT:
if (((EclipseDeclarationImpl) _parent).isBindingBased())
return ((AnnotationElementDeclarationImpl) _parent).getResource();
else
return ((ASTBasedAnnotationElementDeclarationImpl) _parent).getResource();
default:
throw new IllegalStateException(); // should never reach this point.
}
}
|
| |||
[[#variable993d9460]] [[#variable993d9400]] [[#variable993d9380]]() {
final MirrorKind kind = _parent.kind();
switch (kind) {
case ANNOTATION_MIRROR:
return ((AnnotationMirrorImpl) _parent). [[#variable993d9380]]();
case ANNOTATION_ELEMENT:
if (((EclipseDeclarationImpl) _parent).isBindingBased())
return ((AnnotationElementDeclarationImpl) _parent). [[#variable993d9380]]();
else
return ((ASTBasedAnnotationElementDeclarationImpl) _parent). [[#variable993d9380]]();
default:
throw new IllegalStateException(); // should never reach this point.
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#993d9460]] | |
| 1 | 2 | [[#993d9460]] | public |
| 1 | 3 | [[#993d9460]] | public |
| 2 | 1 | [[#993d9400]] | CompilationUnit |
| 2 | 2 | [[#993d9400]] | boolean |
| 2 | 3 | [[#993d9400]] | IFile |
| 3 | 1 | [[#993d9380]] | getCompilationUnit |
| 3 | 2 | [[#993d9380]] | isFromSource |
| 3 | 3 | [[#993d9380]] | getResource |