Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 80 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMCompilationUnit.java |
2 | 5 | 324 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMField.java |
| ||||
/** * @see IDOMNode#getJavaElement */ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { if (parent.getElementType() == IJavaElement.PACKAGE_FRAGMENT) { return ((IPackageFragment) parent).getCompilationUnit(getName()); } else { throw new IllegalArgumentException(Messages.element_illegalParent); } } |
| ||||
/** * @see IDOMNode#getJavaElement */ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { if (parent.getElementType() == IJavaElement.TYPE) { return ((IType) parent).getField(getName()); } else { throw new IllegalArgumentException(Messages.element_illegalParent); } } |
| |||
/** * @see IDOMNode#getJavaElement */ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { if (parent.getElementType() == IJavaElement. [[#variable62a6de20]]) { return (( [[#variable62a6ddc0]]) parent). [[#variable62a6dca0]](getName()); } else { throw new IllegalArgumentException(Messages.element_illegalParent); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62a6de20]] | PACKAGE_FRAGMENT |
1 | 2 | [[#62a6de20]] | TYPE |
2 | 1 | [[#62a6ddc0]] | IPackageFragment |
2 | 2 | [[#62a6ddc0]] | IType |
3 | 1 | [[#62a6dca0]] | getCompilationUnit |
3 | 2 | [[#62a6dca0]] | getField |