| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 9 | 3 | 0.981 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 211 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ClassInstanceCreation.java |
| 2 | 12 | 118 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ConstructorInvocation.java |
| 3 | 13 | 291 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java |
| 4 | 12 | 149 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodInvocation.java |
| 5 | 12 | 142 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/PackageDeclaration.java |
| 6 | 12 | 134 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperConstructorInvocation.java |
| 7 | 12 | 150 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperMethodInvocation.java |
| 8 | 12 | 163 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationExpression.java |
| 9 | 12 | 166 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationStatement.java |
| ||||
/**
* Creates a new AST node for a class instance creation expression owned
* by the given AST. By default, there is no qualifying expression,
* an empty list of type parameters, an unspecified type, an empty
* list of arguments, and does not declare an anonymous class.
* <p>
* N.B. This constructor is package-private; all subclasses must be
* declared in the same package; clients are unable to declare
* additional subclasses.
* </p>
*
* @param ast the AST that is to own this node
*/
ClassInstanceCreation (AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.typeArguments = new ASTNode.NodeList(TYPE_ARGUMENTS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
* @since 3.0
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new AST node for an alternate constructor invocation statement
* owned by the given AST. By default, an empty list of arguments.
*
* @param ast the AST that is to own this node
*/
ConstructorInvocation(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.typeArguments = new ASTNode.NodeList(TYPE_ARGUMENTS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new AST node for a method declaration owned
* by the given AST. By default, the declaration is for a method of an
* unspecified, but legal, name; no modifiers; no javadoc; no type
* parameters; void return type; no parameters; no array dimensions after
* the parameters; no thrown exceptions; and no body (as opposed to an
* empty body).
* <p>
* N.B. This constructor is package-private; all subclasses must be
* declared in the same package; clients are unable to declare
* additional subclasses.
* </p>
*
* @param ast the AST that is to own this node
*/
MethodDeclaration(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.typeParameters = new ASTNode.NodeList(TYPE_PARAMETERS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
* @since 3.0
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new AST node for a method invocation expression owned by the
* given AST. By default, no expression, no type arguments,
* an unspecified, but legal, method name, and an empty list of arguments.
*
* @param ast the AST that is to own this node
*/
MethodInvocation(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.typeArguments = new ASTNode.NodeList(TYPE_ARGUMENTS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new AST node for a package declaration owned by the
* given AST. The package declaration initially has an unspecified,
* but legal, Java identifier; and an empty list of annotations.
* <p>
* N.B. This constructor is package-private; all subclasses must be
* declared in the same package; clients are unable to declare
* additional subclasses.
* </p>
*
* @param ast the AST that is to own this node
*/
PackageDeclaration(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.annotations = new ASTNode.NodeList(ANNOTATIONS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new AST node for an super constructor invocation statement
* owned by the given AST. By default, no type arguments, and an empty list
* of arguments.
*
* @param ast the AST that is to own this node
*/
SuperConstructorInvocation(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.typeArguments = new ASTNode.NodeList(TYPE_ARGUMENTS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new AST node for a "super" method invocation expression owned
* by the given AST. By default, no qualifier, no type arguments,
* an unspecified, but legal, method name, and an empty list of arguments.
*
* @param ast the AST that is to own this node
*/
SuperMethodInvocation(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.typeArguments = new ASTNode.NodeList(TYPE_ARGUMENTS_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new unparented local variable declaration expression node
* owned by the given AST. By default, the variable declaration has: no
* modifiers, an unspecified (but legal) type, and an empty list of variable
* declaration fragments (which is syntactically illegal).
* <p>
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
VariableDeclarationExpression(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.modifiers = new ASTNode.NodeList(MODIFIERS2_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| ||||
/**
* Creates a new unparented local variable declaration statement node owned
* by the given AST. By default, the variable declaration has: no modifiers,
* an unspecified (but legal) type, and an empty list of variable
* declaration fragments (which is syntactically illegal).
* <p>
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
VariableDeclarationStatement(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.modifiers = new ASTNode.NodeList(MODIFIERS2_PROPERTY);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| |||
[[#variablea3103000]](AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this. [[#variable77a8d620]]= new ASTNode.NodeList( [[#variable77a8d600]]);
}
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
* @since 3.0
*/
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescriptors(apiLevel);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a3103000]] | /**
* Creates a new AST node for a class instance creation expression owned
* by the given AST. By default, there is no qualifying expression,
* an empty list of type parameters, an unspecified type, an empty
* list of arguments, and does not declare an anonymous class.
* <p>
* N.B. This constructor is package-private; all subclasses must be
* declared in the same package; clients are unable to declare
* additional subclasses.
* </p>
*
* @param ast the AST that is to own this node
*/
ClassInstanceCreation |
| 1 | 2 | [[#a3103000]] | /** * Creates a new unparented local variable declaration expression node * owned by the given AST. By default, the variable declaration has: no * modifiers, an unspecified (but legal) type, and an empty list of variable * declaration fragments (which is syntactically illegal). * <p> * N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ VariableDeclarationExpression |
| 1 | 3 | [[#a3103000]] | /** * Creates a new AST node for an super constructor invocation statement * owned by the given AST. By default, no type arguments, and an empty list * of arguments. * * @param ast the AST that is to own this node */ SuperConstructorInvocation |
| 1 | 4 | [[#a3103000]] | /** * Creates a new AST node for an alternate constructor invocation statement * owned by the given AST. By default, an empty list of arguments. * * @param ast the AST that is to own this node */ ConstructorInvocation |
| 1 | 5 | [[#a3103000]] | /** * Creates a new AST node for a method invocation expression owned by the * given AST. By default, no expression, no type arguments, * an unspecified, but legal, method name, and an empty list of arguments. * * @param ast the AST that is to own this node */ MethodInvocation |
| 1 | 6 | [[#a3103000]] | /** * Creates a new AST node for a method declaration owned * by the given AST. By default, the declaration is for a method of an * unspecified, but legal, name; no modifiers; no javadoc; no type * parameters; void return type; no parameters; no array dimensions after * the parameters; no thrown exceptions; and no body (as opposed to an * empty body). * <p> * N.B. This constructor is package-private; all subclasses must be * declared in the same package; clients are unable to declare * additional subclasses. * </p> * * @param ast the AST that is to own this node */ MethodDeclaration |
| 1 | 7 | [[#a3103000]] | /** * Creates a new AST node for a package declaration owned by the * given AST. The package declaration initially has an unspecified, * but legal, Java identifier; and an empty list of annotations. * <p> * N.B. This constructor is package-private; all subclasses must be * declared in the same package; clients are unable to declare * additional subclasses. * </p> * * @param ast the AST that is to own this node */ PackageDeclaration |
| 1 | 8 | [[#a3103000]] | /** * Creates a new AST node for a "super" method invocation expression owned * by the given AST. By default, no qualifier, no type arguments, * an unspecified, but legal, method name, and an empty list of arguments. * * @param ast the AST that is to own this node */ SuperMethodInvocation |
| 1 | 9 | [[#a3103000]] | /** * Creates a new unparented local variable declaration statement node owned * by the given AST. By default, the variable declaration has: no modifiers, * an unspecified (but legal) type, and an empty list of variable * declaration fragments (which is syntactically illegal). * <p> * N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ VariableDeclarationStatement |
| 2 | 1 | [[#77a8d620]] | typeArguments |
| 2 | 2 | [[#77a8d620]] | modifiers |
| 2 | 3 | [[#77a8d620]] | typeArguments |
| 2 | 4 | [[#77a8d620]] | typeArguments |
| 2 | 5 | [[#77a8d620]] | typeArguments |
| 2 | 6 | [[#77a8d620]] | typeParameters |
| 2 | 7 | [[#77a8d620]] | annotations |
| 2 | 8 | [[#77a8d620]] | typeArguments |
| 2 | 9 | [[#77a8d620]] | modifiers |
| 3 | 1 | [[#77a8d600]] | TYPE_ARGUMENTS_PROPERTY |
| 3 | 2 | [[#77a8d600]] | MODIFIERS2_PROPERTY |
| 3 | 3 | [[#77a8d600]] | TYPE_ARGUMENTS_PROPERTY |
| 3 | 4 | [[#77a8d600]] | TYPE_ARGUMENTS_PROPERTY |
| 3 | 5 | [[#77a8d600]] | TYPE_ARGUMENTS_PROPERTY |
| 3 | 6 | [[#77a8d600]] | TYPE_PARAMETERS_PROPERTY |
| 3 | 7 | [[#77a8d600]] | ANNOTATIONS_PROPERTY |
| 3 | 8 | [[#77a8d600]] | TYPE_ARGUMENTS_PROPERTY |
| 3 | 9 | [[#77a8d600]] | MODIFIERS2_PROPERTY |