CloneSet2500


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21210.977class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121411
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationExpression.java
220414
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationStatement.java
Clone Instance
1
Line Count
21
Source Line
411
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationExpression.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();
        }


Clone Instance
2
Line Count
20
Source Line
414
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationStatement.java

        /**
         * 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();
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52e667c0]]
BASE_NODE_SIZE 
12[[#52e667c0]]
super.memSize()