| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 3 | 0.962 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 1268 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java |
| 2 | 5 | 1518 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java |
| ||||
/**
* Creates and returns a new unparented qualified name node for the given
* qualifier and simple name child node.
*
* @param qualifier the qualifier name node
* @param name the simple name being qualified
* @return a new unparented qualified name node
* @exception IllegalArgumentException if:
* <ul>
* <li>the node belongs to a different AST</li>
* <li>the node already has a parent</li>
* </ul>
*/
public QualifiedName newQualifiedName(
Name qualifier,
SimpleName name ) {
QualifiedName result = new QualifiedName(this );
result.setQualifier(qualifier);
result.setName(name);
return result;
}
|
| ||||
/**
* Creates and returns a new unparented qualified type node with
* the given qualifier type and name.
*
* @param qualifier the qualifier type node
* @param name the simple name being qualified
* @return a new unparented qualified type node
* @exception IllegalArgumentException if:
* <ul>
* <li>the node belongs to a different AST</li>
* <li>the node already has a parent</li>
* </ul>
* @exception UnsupportedOperationException if this operation is used in
* a JLS2 AST
* @since 3.1
*/
public QualifiedType newQualifiedType(Type qualifier, SimpleName name) {
QualifiedType result = new QualifiedType(this );
result.setQualifier(qualifier);
result.setName(name);
return result;
}
|
| |||
/**
* Creates and returns a new unparented qualified name node for the given
* qualifier and simple name child node.
*
* @param qualifier the qualifier name node
* @param name the simple name being qualified
* @return a new unparented qualified name node
* @exception IllegalArgumentException if:
* <ul>
* <li>the node belongs to a different AST</li>
* <li>the node already has a parent</li>
* </ul>
*/
/**
* Creates and returns a new unparented qualified type node with
* the given qualifier type and name.
*
* @param qualifier the qualifier type node
* @param name the simple name being qualified
* @return a new unparented qualified type node
* @exception IllegalArgumentException if:
* <ul>
* <li>the node belongs to a different AST</li>
* <li>the node already has a parent</li>
* </ul>
* @exception UnsupportedOperationException if this operation is used in
* a JLS2 AST
* @since 3.1
*/
public [[#variablea52d69a0]] [[#variablea52d6920]]( [[#variablea52d6820]] qualifier, SimpleName name) {
[[#variablea52d69a0]] result = new [[#variablea52d69a0]](this );
result.setQualifier(qualifier);
result.setName(name);
return result;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a52d69a0]] | QualifiedName |
| 1 | 2 | [[#a52d69a0]] | QualifiedType |
| 2 | 1 | [[#a52d6920]] | newQualifiedName |
| 2 | 2 | [[#a52d6920]] | newQualifiedType |
| 3 | 1 | [[#a52d6820]] | Name |
| 3 | 2 | [[#a52d6820]] | Type |