Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 2 | 0.963 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 255 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java |
2 | 2 | 290 | 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); } |
| ||||
/** * 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); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b8ab3d80]] | boolean |
1 | 2 | [[#b8ab3d80]] | int |
2 | 1 | [[#b8ab3ce0]] | includeReferencedProjects |
2 | 2 | [[#b8ab3ce0]] | includeMask |