Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 3 | 3 | 0.992 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 492 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java |
2 | 17 | 519 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java |
3 | 17 | 546 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringSearchEngine2.java |
| ||||
/** * Performs the search of referenced fields. * * @param element the java element whose referenced fields have to be found * @param monitor the progress monitor, or <code>null</code> * @throws JavaModelException if an error occurs during search */ public final void searchReferencedFields( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException { Assert.isNotNull(element); try { monitor.beginTask("", 1); //$NON-NLS-1$ monitor.setTaskName(RefactoringCoreMessages.RefactoringSearchEngine_searching_referenced_fields); try { SearchEngine engine = null; if (fOwner != null) engine = new SearchEngine(fOwner); else engine = new SearchEngine(); engine.searchDeclarationsOfAccessedFields(element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)); } catch (CoreException exception) { throw new JavaModelException(exception); } } finally { monitor.done(); } } |
| ||||
/** * Performs the search of referenced methods. * * @param element the java element whose referenced methods have to be found * @param monitor the progress monitor, or <code>null</code> * @throws JavaModelException if an error occurs during search */ public final void searchReferencedMethods( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException { Assert.isNotNull(element); try { monitor.beginTask("", 1); //$NON-NLS-1$ monitor.setTaskName(RefactoringCoreMessages.RefactoringSearchEngine_searching_referenced_methods); try { SearchEngine engine = null; if (fOwner != null) engine = new SearchEngine(fOwner); else engine = new SearchEngine(); engine.searchDeclarationsOfSentMessages(element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)); } catch (CoreException exception) { throw new JavaModelException(exception); } } finally { monitor.done(); } } |
| ||||
/** * Performs the search of referenced types. * * @param element the java element whose referenced types have to be found * @param monitor the progress monitor, or <code>null</code> * @throws JavaModelException if an error occurs during search */ public final void searchReferencedTypes( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException { Assert.isNotNull(element); try { monitor.beginTask("", 1); //$NON-NLS-1$ monitor.setTaskName(RefactoringCoreMessages.RefactoringSearchEngine_searching_referenced_types); try { SearchEngine engine = null; if (fOwner != null) engine = new SearchEngine(fOwner); else engine = new SearchEngine(); engine.searchDeclarationsOfReferencedTypes(element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)); } catch (CoreException exception) { throw new JavaModelException(exception); } } finally { monitor.done(); } } |
| |||
/** * Performs the search of referenced fields. * * @param element the java element whose referenced fields have to be found * @param monitor the progress monitor, or <code>null</code> * @throws JavaModelException if an error occurs during search */ /** * Performs the search of referenced methods. * * @param element the java element whose referenced methods have to be found * @param monitor the progress monitor, or <code>null</code> * @throws JavaModelException if an error occurs during search */ /** * Performs the search of referenced types. * * @param element the java element whose referenced types have to be found * @param monitor the progress monitor, or <code>null</code> * @throws JavaModelException if an error occurs during search */ public final void [[#variableb30edd40]]( final IJavaElement element, final IProgressMonitor monitor) throws JavaModelException { Assert.isNotNull(element); try { monitor.beginTask("", 1); //$NON-NLS-1$ monitor.setTaskName(RefactoringCoreMessages. [[#variableb30edca0]]); try { SearchEngine engine = null; if (fOwner != null) engine = new SearchEngine(fOwner); else engine = new SearchEngine(); engine. [[#variableb30edba0]](element, getCollector(), new SubProgressMonitor(monitor, 1, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)); } catch (CoreException exception) { throw new JavaModelException(exception); } } finally { monitor.done(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b30edd40]] | searchReferencedFields |
1 | 2 | [[#b30edd40]] | searchReferencedMethods |
1 | 3 | [[#b30edd40]] | searchReferencedTypes |
2 | 1 | [[#b30edca0]] | RefactoringSearchEngine_searching_referenced_fields |
2 | 2 | [[#b30edca0]] | RefactoringSearchEngine_searching_referenced_methods |
2 | 3 | [[#b30edca0]] | RefactoringSearchEngine_searching_referenced_types |
3 | 1 | [[#b30edba0]] | searchDeclarationsOfAccessedFields |
3 | 2 | [[#b30edba0]] | searchDeclarationsOfSentMessages |
3 | 3 | [[#b30edba0]] | searchDeclarationsOfReferencedTypes |