Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 1 | 0.977 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 411 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationExpression.java |
2 | 20 | 414 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationStatement.java |
| ||||
/** * Returns the live list of variable declaration fragments in this * expression. Adding and removing nodes from this list affects this node * dynamically. All nodes in this list must be * <code>VariableDeclarationFragment</code>s; attempts to add any other * type of node will trigger an exception. * * @return the live list of variable declaration fragments in this * expression (element type: <code>VariableDeclarationFragment</code>) */ public List fragments() { return this.variableDeclarationFragments; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { // treat Operator as free return BASE_NODE_SIZE + 4 * 4; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int treeSize() { return memSize() + (this.modifiers == null ? 0: this.modifiers.listSize()) + (this.baseType == null ? 0: getType().treeSize()) + this.variableDeclarationFragments.listSize(); } |
| ||||
/** * Returns the live list of variable declaration fragments in this statement. * Adding and removing nodes from this list affects this node dynamically. * All nodes in this list must be <code>VariableDeclarationFragment</code>s; * attempts to add any other type of node will trigger an * exception. * * @return the live list of variable declaration fragments in this * statement (element type: <code>VariableDeclarationFragment</code>) */ public List fragments() { return this.variableDeclarationFragments; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { return super.memSize() + 4 * 4; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int treeSize() { return memSize() + (this.modifiers == null ? 0: this.modifiers.listSize()) + (this.baseType == null ? 0: getType().treeSize()) + this.variableDeclarationFragments.listSize(); } |
| |||
/** * Returns the live list of variable declaration fragments in this * expression. Adding and removing nodes from this list affects this node * dynamically. All nodes in this list must be * <code>VariableDeclarationFragment</code>s; attempts to add any other * type of node will trigger an exception. * * @return the live list of variable declaration fragments in this * expression (element type: <code>VariableDeclarationFragment</code>) */ /** * Returns the live list of variable declaration fragments in this statement. * Adding and removing nodes from this list affects this node dynamically. * All nodes in this list must be <code>VariableDeclarationFragment</code>s; * attempts to add any other type of node will trigger an * exception. * * @return the live list of variable declaration fragments in this * statement (element type: <code>VariableDeclarationFragment</code>) */ public List fragments() { return this.variableDeclarationFragments; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int memSize() { // treat Operator as free return [[#variable52e667c0]] + 4 * 4; } /* (omit javadoc for this method) * Method declared on ASTNode. */ int treeSize() { return memSize() + (this.modifiers == null ? 0: this.modifiers.listSize()) + (this.baseType == null ? 0: getType().treeSize()) + this.variableDeclarationFragments.listSize(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52e667c0]] | BASE_NODE_SIZE |
1 | 2 | [[#52e667c0]] | super.memSize() |