CloneSet3014


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17330.964class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118631
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
218660
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
317714
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
Clone Instance
1
Line Count
18
Source Line
631
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java

        /**
         * Reports that the given node is about to change the value of a
         * non-child property.
         * 
         * @param node the node to be modified
         * @param property the property descriptor
         * @since 3.0
         */
        void preValueChangeEvent(ASTNode node, SimplePropertyDescriptor property) {
                // IMPORTANT: this method is called by readers during lazy init
                synchronized (this.internalASTLock) {
                        // guard against concurrent access by a reader doing lazy init
                        if (this.disableEvents > 0) {
                                // doing lazy init OR already processing an event
                                // System.out.println("[BOUNCE CHANGE]");
                                return;
                        }
                        else   {
                                disableEvents();
                        }
                }
                try {
                        this.eventHandler.preValueChangeEvent(node, property);
                        // N.B. even if event handler blows up, the AST is not
                        // corrupted since node has already been changed
                } finally {
                        reenableEvents();
                  }
        }


Clone Instance
2
Line Count
18
Source Line
660
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java

        /**
         * Reports that the given node has just changed the value of a
         * non-child property.
         * 
         * @param node the node that was modified
         * @param property the property descriptor
         * @since 3.0
         */
        void postValueChangeEvent(ASTNode node, SimplePropertyDescriptor property) {
                // IMPORTANT: this method is called by readers during lazy init
                synchronized (this.internalASTLock) {
                        // guard against concurrent access by a reader doing lazy init
                        if (this.disableEvents > 0) {
                                // doing lazy init OR already processing an event
                                // System.out.println("[BOUNCE CHANGE]");
                                return;
                        }
                        else   {
                                disableEvents();
                        }
                }
                try {
                        this.eventHandler.postValueChangeEvent(node, property);
                        // N.B. even if event handler blows up, the AST is not
                        // corrupted since node has already been changed
                } finally {
                        reenableEvents();
                  }
        }


Clone Instance
3
Line Count
17
Source Line
714
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java

        /**
         * Reports that the given node has just been cloned.
         * 
         * @param node the node that was cloned
         * @param clone the clone of <code>node</code>
         * @since 3.0
         */
        void postCloneNodeEvent(ASTNode node, ASTNode clone) {
                synchronized (this.internalASTLock) {
                        // guard against concurrent access by a reader doing lazy init
                        if (this.disableEvents > 0) {
                                // doing lazy init OR already processing an event
                                // System.out.println("[BOUNCE CLONE]");
                                return;
                        }
                        else   {
                                disableEvents();
                        }
                }
                try {
                        this.eventHandler.postCloneNodeEvent(node, clone);
                        // N.B. even if event handler blows up, the AST is not
                        // corrupted since node has already been changed
                } finally {
                        reenableEvents();
                  }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Reports that the given node has just been cloned.
         * 
         * @param node the node that was cloned
         * @param clone the clone of <code>node</code>
         * @since 3.0
         */
/**
         * Reports that the given node has just changed the value of a
         * non-child property.
         * 
         * @param node the node that was modified
         * @param property the property descriptor
         * @since 3.0
         */
/**
         * Reports that the given node is about to change the value of a
         * non-child property.
         * 
         * @param node the node to be modified
         * @param property the property descriptor
         * @since 3.0
         */
void [[#variable7d0f9900]](ASTNode node, [[#variable7d0f9860]]  [[#variable7d0f9720]]) {
  // IMPORTANT: this method is called by readers during lazy init
  synchronized (this.internalASTLock) {
    // guard against concurrent access by a reader doing lazy init
    if (this.disableEvents > 0) {
      // doing lazy init OR already processing an event
      // System.out.println("[BOUNCE CLONE]");
      // System.out.println("[BOUNCE CHANGE]");
      return;
    }
    else {
      disableEvents();
    }
  }
  try {
    this.eventHandler. [[#variable7d0f9900]](node,  [[#variable7d0f9720]]);
  // N.B. even if event handler blows up, the AST is not
  // corrupted since node has already been changed
  }
  finally {
    reenableEvents();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7d0f9900]]
postCloneNodeEvent 
12[[#7d0f9900]]
postValueChangeEvent 
13[[#7d0f9900]]
preValueChangeEvent 
21[[#7d0f9860]]
ASTNode 
22[[#7d0f9860]]
SimplePropertyDescriptor 
23[[#7d0f9860]]
SimplePropertyDescriptor 
31[[#7d0f9720]]
clone 
32[[#7d0f9720]]
property 
33[[#7d0f9720]]
property