| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 16 | 2 | 2 | 0.972 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 16 | 42 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeEventHandler.java |
| 2 | 16 | 109 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeEventHandler.java |
| ||||
/**
* Reports that the given node is about to lose a child.
* The first half of an event pair. The default implementation does nothing.
*
* @param node the node about to be modified
* @param child the node about to be removed
* @param property the child or child list property descriptor
* @see #postRemoveChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
void preRemoveChildEvent(ASTNode node, ASTNode child, StructuralPropertyDescriptor property) {
// do nothing
// System.out.println("DEL1 " + property);
}
/**
* Reports that the given node has just lose a child.
* The second half of an event pair. The default implementation does nothing.
*
* @param node the node that was modified
* @param child the child that was removed; note that this node is unparented
* @param property the child or child list property descriptor
* @see #preRemoveChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
void postRemoveChildEvent(ASTNode node, ASTNode child, StructuralPropertyDescriptor property) {
// do nothing
// System.out.println("DEL2 " + property);
}
|
| ||||
/**
* Reports that the given node is about to gain a child.
* The first half of an event pair. The default implementation does nothing.
*
* @param node the node that to be modified
* @param child the node that is to be added as a child; note that this
* node is unparented; in the case of a child list property, the exact
* location of insertion is not supplied (but is known on the
* corresponding <code>postAddChildEvent</code> to
* follow)
* @param property the child or child list property descriptor
* @see #postAddChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
void preAddChildEvent(ASTNode node, ASTNode child, StructuralPropertyDescriptor property) {
// do nothing
// System.out.println("ADD1 " + property);
}
/**
* Reports that the given node has just gained a child.
* The second half of an event pair. The default implementation does nothing.
*
* @param node the node that was modified
* @param child the node that was added as a child
* @param property the child or child list property descriptor
* @see #preAddChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
void postAddChildEvent(ASTNode node, ASTNode child, StructuralPropertyDescriptor property) {
// do nothing
// System.out.println("ADD2 " + property);
}
|
| |||
/**
* Reports that the given node is about to lose a child.
* The first half of an event pair. The default implementation does nothing.
*
* @param node the node about to be modified
* @param child the node about to be removed
* @param property the child or child list property descriptor
* @see #postRemoveChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
/**
* Reports that the given node is about to gain a child.
* The first half of an event pair. The default implementation does nothing.
*
* @param node the node that to be modified
* @param child the node that is to be added as a child; note that this
* node is unparented; in the case of a child list property, the exact
* location of insertion is not supplied (but is known on the
* corresponding <code>postAddChildEvent</code> to
* follow)
* @param property the child or child list property descriptor
* @see #postAddChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
void [[#variablebb049de0]](ASTNode node, ASTNode child, StructuralPropertyDescriptor property) {
// do nothing
// System.out.println("DEL1 " + property);
// System.out.println("ADD1 " + property);
}
/**
* Reports that the given node has just lose a child.
* The second half of an event pair. The default implementation does nothing.
*
* @param node the node that was modified
* @param child the child that was removed; note that this node is unparented
* @param property the child or child list property descriptor
* @see #preRemoveChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
/**
* Reports that the given node has just gained a child.
* The second half of an event pair. The default implementation does nothing.
*
* @param node the node that was modified
* @param child the node that was added as a child
* @param property the child or child list property descriptor
* @see #preAddChildEvent(ASTNode, ASTNode, StructuralPropertyDescriptor)
* @since 3.0
*/
void [[#variableb31c5fc0]](ASTNode node, ASTNode child, StructuralPropertyDescriptor property) {
// do nothing
// System.out.println("DEL2 " + property);
// System.out.println("ADD2 " + property);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#bb049de0]] | preRemoveChildEvent |
| 1 | 2 | [[#bb049de0]] | preAddChildEvent |
| 2 | 1 | [[#b31c5fc0]] | postRemoveChildEvent |
| 2 | 2 | [[#b31c5fc0]] | postAddChildEvent |