Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 3 | 3 | 0.964 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 631 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java |
2 | 18 | 660 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java |
3 | 17 | 714 | 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(); } } |
| ||||
/** * 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(); } } |
| ||||
/** * 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(); } } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7d0f9900]] | postCloneNodeEvent |
1 | 2 | [[#7d0f9900]] | postValueChangeEvent |
1 | 3 | [[#7d0f9900]] | preValueChangeEvent |
2 | 1 | [[#7d0f9860]] | ASTNode |
2 | 2 | [[#7d0f9860]] | SimplePropertyDescriptor |
2 | 3 | [[#7d0f9860]] | SimplePropertyDescriptor |
3 | 1 | [[#7d0f9720]] | clone |
3 | 2 | [[#7d0f9720]] | property |
3 | 3 | [[#7d0f9720]] | property |