CloneSet5942


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2210.992class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1290
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/NodeFinder.java
2297
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/NodeFinder.java
Clone Instance
1
Line Count
2
Source Line
90
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/NodeFinder.java

        /**
         * A visitor that maps a selection to a given ASTNode. The result node is
         * determined as follows:
         * <ul>
         *   <li>first the visitor tries to find a node that is covered by <code>start</code> and
         *       <code>length</code> where either <code>start</code> and <code>length</code> exactly
         *       matches the node or where the text covered before and after the node only consists
         *       of white spaces or comments.</li>
         *       <li>if no such node exists than the node that encloses the range defined by
         *       start and end is returned.</li>
         *   <li>if the length is zero than also nodes are considered where the node's
         *       start or end position matches <code>start</code>.</li>
         *   <li>otherwise <code>null</code> is returned.</li>
         * </ul>
         * 
         * @param root the root node from which the search starts
         * @param start the start offset
         * @param length the length
         * @param source the source of the compilation unit
         * 
         * @return the result node
         * @throws JavaModelException if an error occurs in the Java model
         * 
         * @since               3.0
         */
        public static ASTNode perform(ASTNode root, int start, int length, ICompilationUnit source) throws JavaModelException {
                return performOpenable(root, start, length, source);
        }


Clone Instance
2
Line Count
2
Source Line
97
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/NodeFinder.java

        /**
         * @see #perform(ASTNode, int, int, ICompilationUnit)
         */
        public static ASTNode perform(ASTNode root, int start, int length, IClassFile source) throws JavaModelException {
                return performOpenable(root, start, length, source);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * A visitor that maps a selection to a given ASTNode. The result node is
         * determined as follows:
         * <ul>
         *   <li>first the visitor tries to find a node that is covered by <code>start</code> and
         *       <code>length</code> where either <code>start</code> and <code>length</code> exactly
         *       matches the node or where the text covered before and after the node only consists
         *       of white spaces or comments.</li>
         *       <li>if no such node exists than the node that encloses the range defined by
         *       start and end is returned.</li>
         *   <li>if the length is zero than also nodes are considered where the node's
         *       start or end position matches <code>start</code>.</li>
         *   <li>otherwise <code>null</code> is returned.</li>
         * </ul>
         * 
         * @param root the root node from which the search starts
         * @param start the start offset
         * @param length the length
         * @param source the source of the compilation unit
         * 
         * @return the result node
         * @throws JavaModelException if an error occurs in the Java model
         * 
         * @since               3.0
         */
/**
         * @see #perform(ASTNode, int, int, ICompilationUnit)
         */
public static ASTNode perform(ASTNode root, int start, int length, [[#variable72ed8fe0]] source) throws JavaModelException {
  return performOpenable(root, start, length, source);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#72ed8fe0]]
ICompilationUnit 
12[[#72ed8fe0]]
IClassFile