| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 5 | 2 | 0.988 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 79 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeAnalyzerVisitor.java |
| 2 | 11 | 99 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeAnalyzerVisitor.java |
| 3 | 11 | 127 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeAnalyzerVisitor.java |
| 4 | 11 | 148 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeAnalyzerVisitor.java |
| 5 | 11 | 168 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeAnalyzerVisitor.java |
| ||||
/* (non-Javadoc)
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.ClassInstanceCreation)
*/
public boolean visit(ClassInstanceCreation node) {
progressMonitorWorked(1);
if ( !isFurtherTraversalNecessary(node)) {
return false;
}
if (isNodeWithinMethod(node)) {
addMethodCall(node.resolveConstructorBinding(), node);
}
return true;
}
|
| ||||
/**
* Find all constructor invocations (<code>this(...)</code>) from the called method.
* Since we only traverse into the AST on the wanted method declaration, this method
* should not hit on more constructor invocations than those in the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.ConstructorInvocation)
*/
public boolean visit(ConstructorInvocation node) {
progressMonitorWorked(1);
if ( !isFurtherTraversalNecessary(node)) {
return false;
}
if (isNodeWithinMethod(node)) {
addMethodCall(node.resolveConstructorBinding(), node);
}
return true;
}
|
| ||||
/**
* Find all method invocations from the called method. Since we only traverse into
* the AST on the wanted method declaration, this method should not hit on more
* method invocations than those in the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.MethodInvocation)
*/
public boolean visit(MethodInvocation node) {
progressMonitorWorked(1);
if ( !isFurtherTraversalNecessary(node)) {
return false;
}
if (isNodeWithinMethod(node)) {
addMethodCall(node.resolveMethodBinding(), node);
}
return true;
}
|
| ||||
/**
* Find invocations of the supertype's constructor from the called method
* (=constructor). Since we only traverse into the AST on the wanted method
* declaration, this method should not hit on more method invocations than those in
* the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SuperConstructorInvocation)
*/
public boolean visit(SuperConstructorInvocation node) {
progressMonitorWorked(1);
if ( !isFurtherTraversalNecessary(node)) {
return false;
}
if (isNodeWithinMethod(node)) {
addMethodCall(node.resolveConstructorBinding(), node);
}
return true;
}
|
| ||||
/**
* Find all method invocations from the called method. Since we only traverse into
* the AST on the wanted method declaration, this method should not hit on more
* method invocations than those in the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.MethodInvocation)
*/
public boolean visit(SuperMethodInvocation node) {
progressMonitorWorked(1);
if ( !isFurtherTraversalNecessary(node)) {
return false;
}
if (isNodeWithinMethod(node)) {
addMethodCall(node.resolveMethodBinding(), node);
}
return true;
}
|
| |||
/* (non-Javadoc)
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.ClassInstanceCreation)
*/
/**
* Find all constructor invocations (<code>this(...)</code>) from the called method.
* Since we only traverse into the AST on the wanted method declaration, this method
* should not hit on more constructor invocations than those in the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.ConstructorInvocation)
*/
/**
* Find all method invocations from the called method. Since we only traverse into
* the AST on the wanted method declaration, this method should not hit on more
* method invocations than those in the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.MethodInvocation)
*/
/**
* Find invocations of the supertype's constructor from the called method
* (=constructor). Since we only traverse into the AST on the wanted method
* declaration, this method should not hit on more method invocations than those in
* the wanted method.
*
* @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SuperConstructorInvocation)
*/
public boolean visit( [[#variableb2fa3060]] node) {
progressMonitorWorked(1);
if ( !isFurtherTraversalNecessary(node)) {
return false;
}
if (isNodeWithinMethod(node)) {
addMethodCall(node. [[#variableb2fa2fc0]](), node);
}
return true;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b2fa3060]] | ClassInstanceCreation |
| 1 | 2 | [[#b2fa3060]] | ConstructorInvocation |
| 1 | 3 | [[#b2fa3060]] | MethodInvocation |
| 1 | 4 | [[#b2fa3060]] | SuperConstructorInvocation |
| 1 | 5 | [[#b2fa3060]] | SuperMethodInvocation |
| 2 | 1 | [[#b2fa2fc0]] | resolveConstructorBinding |
| 2 | 2 | [[#b2fa2fc0]] | resolveConstructorBinding |
| 2 | 3 | [[#b2fa2fc0]] | resolveMethodBinding |
| 2 | 4 | [[#b2fa2fc0]] | resolveConstructorBinding |
| 2 | 5 | [[#b2fa2fc0]] | resolveMethodBinding |