Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
28 | 2 | 3 | 0.990 | class_body_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 28 | 114 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMImport.java |
2 | 28 | 97 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMPackage.java |
| ||||
/** * @see IDOMNode#getContents() */ public String getContents() { if (fName == null) { return null; } else { return super.getContents(); } } /** * @see DOMNode#getDetailedNode() */ protected DOMNode getDetailedNode() { return (DOMNode) getFactory().createImport(getContents()); } /** * @see IDOMNode#getJavaElement */ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { if (parent.getElementType() == IJavaElement.COMPILATION_UNIT) { return ((ICompilationUnit) parent).getImport(getName()); } else { throw new IllegalArgumentException(Messages.element_illegalParent); } } /** * @see IDOMNode#getNodeType() */ public int getNodeType() { return IDOMNode.IMPORT; } |
| ||||
/** * @see IDOMNode#getContents() */ public String getContents() { if (fName == null) { return null; } else { return super.getContents(); } } /** * @see DOMNode#getDetailedNode() */ protected DOMNode getDetailedNode() { return (DOMNode) getFactory().createPackage(getContents()); } /** * @see IDOMNode#getJavaElement */ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { if (parent.getElementType() == IJavaElement.COMPILATION_UNIT) { return ((ICompilationUnit) parent).getPackageDeclaration(getName()); } else { throw new IllegalArgumentException(Messages.element_illegalParent); } } /** * @see IDOMNode#getNodeType() */ public int getNodeType() { return IDOMNode.PACKAGE; } |
| |||
/** * @see IDOMNode#getContents() */ /** * @see IDOMNode#getContents() */ public String getContents() { if (fName == null) { return null; } else { return super.getContents(); } } /** * @see DOMNode#getDetailedNode() */ protected DOMNode getDetailedNode() { return (DOMNode) getFactory(). [[#variablec348e500]](getContents()); } /** * @see IDOMNode#getJavaElement */ public IJavaElement getJavaElement(IJavaElement parent) throws IllegalArgumentException { if (parent.getElementType() == IJavaElement.COMPILATION_UNIT) { return ((ICompilationUnit) parent). [[#variable54304b80]](getName()); } else { throw new IllegalArgumentException(Messages.element_illegalParent); } } /** * @see IDOMNode#getNodeType() */ public int getNodeType() { return IDOMNode. [[#variablec348e560]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c348e500]] | createImport |
1 | 2 | [[#c348e500]] | createPackage |
2 | 1 | [[#54304b80]] | getImport |
2 | 2 | [[#54304b80]] | getPackageDeclaration |
3 | 1 | [[#c348e560]] | IMPORT |
3 | 2 | [[#c348e560]] | PACKAGE |