| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 2 | 0.962 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 167 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/BodyDeclaration.java |
| 2 | 4 | 204 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleVariableDeclaration.java |
| ||||
/**
* Creates a new AST node for a body declaration node owned by the
* given AST.
* <p>
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
BodyDeclaration(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.modifiers = new ASTNode.NodeList(internalModifiers2Property());
}
}
|
| ||||
/**
* Creates a new AST node for a variable declaration owned by the given
* AST. By default, the variable declaration has: no modifiers, an
* unspecified (but legal) type, an unspecified (but legal) variable name,
* 0 dimensions after the variable; no initializer; not variable arity.
* <p>
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
SingleVariableDeclaration(AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.modifiers = new ASTNode.NodeList(MODIFIERS2_PROPERTY);
}
}
|
| |||
[[#variable55e8b680]](AST ast) {
super(ast);
if (ast.apiLevel >= AST.JLS3) {
this.modifiers = new ASTNode.NodeList( [[#variable55e8b5c0]]);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#55e8b680]] | /** * Creates a new AST node for a body declaration node owned by the * given AST. * <p> * N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ BodyDeclaration |
| 1 | 2 | [[#55e8b680]] | /** * Creates a new AST node for a variable declaration owned by the given * AST. By default, the variable declaration has: no modifiers, an * unspecified (but legal) type, an unspecified (but legal) variable name, * 0 dimensions after the variable; no initializer; not variable arity. * <p> * N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ SingleVariableDeclaration |
| 2 | 1 | [[#55e8b5c0]] | internalModifiers2Property() |
| 2 | 2 | [[#55e8b5c0]] | MODIFIERS2_PROPERTY |