CloneSet9883


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.972class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11642
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeEventHandler.java
216109
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeEventHandler.java
Clone Instance
1
Line Count
16
Source Line
42
Source File
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);
        }


Clone Instance
2
Line Count
16
Source Line
109
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NodeEventHandler.java

        /**
         * 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);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb049de0]]
preRemoveChildEvent 
12[[#bb049de0]]
preAddChildEvent 
21[[#b31c5fc0]]
postRemoveChildEvent 
22[[#b31c5fc0]]
postAddChildEvent