CloneSet8863


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2220.963class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12255
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java
22290
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java
Clone Instance
1
Line Count
2
Source Line
255
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java

        /**
         * Returns a Java search scope limited to the given Java elements.
         * The Java elements resulting from a search with this scope will
         * be children of the given elements.
         * 
         * If an element is an IJavaProject, then the project's source folders, 
         * its jars (external and internal) and - if specified - its referenced projects 
         * (with their source folders and jars, recursively) will be included.
         * If an element is an IPackageFragmentRoot, then only the package fragments of 
         * this package fragment root will be included.
         * If an element is an IPackageFragment, then only the compilation unit and class 
         * files of this package fragment will be included. Subpackages will NOT be 
         * included.
         *
         * @param elements the Java elements the scope is limited to
         * @param includeReferencedProjects a flag indicating if referenced projects must be 
         *                                                                       recursively included
         * @return a new Java search scope
         * @since 2.0
         */
        public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, boolean includeReferencedProjects) {
                return BasicSearchEngine.createJavaSearchScope(elements, includeReferencedProjects);
        }


Clone Instance
2
Line Count
2
Source Line
290
Source File
plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java

        /**
         * Returns a Java search scope limited to the given Java elements.
         * The Java elements resulting from a search with this scope will
         * be children of the given elements.
         * 
         * If an element is an IJavaProject, then it includes:
         * - its source folders if IJavaSearchScope.SOURCES is specified, 
         * - its application libraries (internal and external jars, class folders that are on the raw classpath, 
         *   or the ones that are coming from a classpath path variable,
         *   or the ones that are coming from a classpath container with the K_APPLICATION kind)
         *   if IJavaSearchScope.APPLICATION_LIBRARIES is specified
         * - its system libraries (internal and external jars, class folders that are coming from an 
         *   IClasspathContainer with the K_SYSTEM kind) 
         *   if IJavaSearchScope.APPLICATION_LIBRARIES is specified
         * - its referenced projects (with their source folders and jars, recursively) 
         *   if IJavaSearchScope.REFERENCED_PROJECTS is specified.
         * If an element is an IPackageFragmentRoot, then only the package fragments of 
         * this package fragment root will be included.
         * If an element is an IPackageFragment, then only the compilation unit and class 
         * files of this package fragment will be included. Subpackages will NOT be 
         * included.
         *
         * @param elements the Java elements the scope is limited to
         * @param includeMask the bit-wise OR of all include types of interest
         * @return a new Java search scope
         * @see IJavaSearchScope#SOURCES
         * @see IJavaSearchScope#APPLICATION_LIBRARIES
         * @see IJavaSearchScope#SYSTEM_LIBRARIES
         * @see IJavaSearchScope#REFERENCED_PROJECTS
         * @since 3.0
         */
        public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, int includeMask) {
                return BasicSearchEngine.createJavaSearchScope(elements, includeMask);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Returns a Java search scope limited to the given Java elements.
         * The Java elements resulting from a search with this scope will
         * be children of the given elements.
         * 
         * If an element is an IJavaProject, then the project's source folders, 
         * its jars (external and internal) and - if specified - its referenced projects 
         * (with their source folders and jars, recursively) will be included.
         * If an element is an IPackageFragmentRoot, then only the package fragments of 
         * this package fragment root will be included.
         * If an element is an IPackageFragment, then only the compilation unit and class 
         * files of this package fragment will be included. Subpackages will NOT be 
         * included.
         *
         * @param elements the Java elements the scope is limited to
         * @param includeReferencedProjects a flag indicating if referenced projects must be 
         *                                                                       recursively included
         * @return a new Java search scope
         * @since 2.0
         */
/**
         * Returns a Java search scope limited to the given Java elements.
         * The Java elements resulting from a search with this scope will
         * be children of the given elements.
         * 
         * If an element is an IJavaProject, then it includes:
         * - its source folders if IJavaSearchScope.SOURCES is specified, 
         * - its application libraries (internal and external jars, class folders that are on the raw classpath, 
         *   or the ones that are coming from a classpath path variable,
         *   or the ones that are coming from a classpath container with the K_APPLICATION kind)
         *   if IJavaSearchScope.APPLICATION_LIBRARIES is specified
         * - its system libraries (internal and external jars, class folders that are coming from an 
         *   IClasspathContainer with the K_SYSTEM kind) 
         *   if IJavaSearchScope.APPLICATION_LIBRARIES is specified
         * - its referenced projects (with their source folders and jars, recursively) 
         *   if IJavaSearchScope.REFERENCED_PROJECTS is specified.
         * If an element is an IPackageFragmentRoot, then only the package fragments of 
         * this package fragment root will be included.
         * If an element is an IPackageFragment, then only the compilation unit and class 
         * files of this package fragment will be included. Subpackages will NOT be 
         * included.
         *
         * @param elements the Java elements the scope is limited to
         * @param includeMask the bit-wise OR of all include types of interest
         * @return a new Java search scope
         * @see IJavaSearchScope#SOURCES
         * @see IJavaSearchScope#APPLICATION_LIBRARIES
         * @see IJavaSearchScope#SYSTEM_LIBRARIES
         * @see IJavaSearchScope#REFERENCED_PROJECTS
         * @since 3.0
         */
public static IJavaSearchScope createJavaSearchScope(IJavaElement[] elements, [[#variableb8ab3d80]]  [[#variableb8ab3ce0]]) {
  return BasicSearchEngine.createJavaSearchScope(elements,  [[#variableb8ab3ce0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b8ab3d80]]
boolean 
12[[#b8ab3d80]]
int 
21[[#b8ab3ce0]]
includeReferencedProjects 
22[[#b8ab3ce0]]
includeMask