Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 2 | 0.988 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 426 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java |
2 | 21 | 454 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMNode.java |
| ||||
DOMNode clone = newDOMNode(); clone.shareContents(this ); clone.fDocument = buffer; if (offset > 0) { clone.offset(0 - offset); } // clone my children if (canHaveChildren()) { Enumeration children = getChildren(); while (children.hasMoreElements()) { DOMNode child = (DOMNode) children.nextElement(); if (child.fDocument == fDocument) { DOMNode childClone = child.cloneSharingDocument(buffer, offset); clone.basicAddChild(childClone); } else { DOMNode childClone = (DOMNode) child.clone(); clone.addChild(childClone); } } } return clone; |
| ||||
DOMNode clone = newDOMNode(); clone.shareContents(this ); clone.fDocument = document; if (rootOffset > 0) { clone.offset(0 - rootOffset); } if (canHaveChildren()) { Enumeration children = getChildren(); while (children.hasMoreElements()) { DOMNode child = (DOMNode) children.nextElement(); if (child.fDocument == fDocument) { DOMNode childClone = child.cloneSharingDocument(document, rootOffset); clone.basicAddChild(childClone); } else { DOMNode childClone = (DOMNode) child.clone(); clone.addChild(childClone); } } } return clone; |
| |||
DOMNode clone = newDOMNode(); clone.shareContents(this ); clone.fDocument = [[#variablebcc899a0]]; if ( [[#variablebcc88a60]] > 0) { clone.offset(0 - [[#variablebcc88a60]]); } // clone my children if (canHaveChildren()) { Enumeration children = getChildren(); while (children.hasMoreElements()) { DOMNode child = (DOMNode) children.nextElement(); if (child.fDocument == fDocument) { DOMNode childClone = child.cloneSharingDocument( [[#variablebcc899a0]], [[#variablebcc88a60]]); clone.basicAddChild(childClone); } else { DOMNode childClone = (DOMNode) child.clone(); clone.addChild(childClone); } } } return clone; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bcc899a0]] | buffer |
1 | 2 | [[#bcc899a0]] | document |
2 | 1 | [[#bcc88a60]] | offset |
2 | 2 | [[#bcc88a60]] | rootOffset |