Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 3 | 2 | 0.978 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 602 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
2 | 5 | 813 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
3 | 5 | 1111 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java |
| ||||
public static boolean isInlineTempAvailable( final JavaTextSelection selection) throws JavaModelException { final IJavaElement[] elements = selection.resolveElementAtOffset(); if (elements.length != 1) return false; return (elements[0] instanceof ILocalVariable) && isInlineTempAvailable((ILocalVariable) elements[0]); } |
| ||||
public static boolean isPromoteTempAvailable( final JavaTextSelection selection) throws JavaModelException { final IJavaElement[] elements = selection.resolveElementAtOffset(); if (elements.length != 1) return false; return (elements[0] instanceof ILocalVariable) && isPromoteTempAvailable((ILocalVariable) elements[0]); } |
| ||||
public static boolean isSelfEncapsulateAvailable( final JavaTextSelection selection) throws JavaModelException { final IJavaElement[] elements = selection.resolveElementAtOffset(); if (elements.length != 1) return false; return (elements[0] instanceof IField) && isSelfEncapsulateAvailable((IField) elements[0]); } |
| |||
public static boolean [[#variableb562b6c0]]( final JavaTextSelection selection) throws JavaModelException { final IJavaElement[] elements = selection.resolveElementAtOffset(); if (elements.length != 1) return false; return (elements[0] instanceof [[#variableb562b720]]) && [[#variableb562b6c0]](( [[#variableb562b720]]) elements[0]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b562b6c0]] | isInlineTempAvailable |
1 | 2 | [[#b562b6c0]] | isPromoteTempAvailable |
1 | 3 | [[#b562b6c0]] | isSelfEncapsulateAvailable |
2 | 1 | [[#b562b720]] | ILocalVariable |
2 | 2 | [[#b562b720]] | ILocalVariable |
2 | 3 | [[#b562b720]] | IField |