Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 4 | 0.975 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 320 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java |
2 | 10 | 411 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java |
| ||||
/** * Returns proposals for a variable name of a local array element grouped * based on local array-typed variables. * * @return proposals for a variable name */ public String[][] getArrayElements() { ICompilationUnit cu = getCompilationUnit(); if (cu == null) { return new String[0][]; } CompilationUnitCompletion completion = getCompletion(); LocalVariable[] localArrays = completion.findLocalArrays(); return suggestElementNames(localArrays, true); } |
| ||||
/** * Returns proposals for a variable name of a local iterable element * grouped based on local array and collection variables. * * @return proposals for a variable name */ public String[][] getIterableElements() { ICompilationUnit cu = getCompilationUnit(); if (cu == null) { return new String[0][]; } CompilationUnitCompletion completion = getCompletion(); LocalVariable[] iterables = completion.findLocalIterables(); return suggestElementNames(iterables, false); } |
| |||
/** * Returns proposals for a variable name of a local array element grouped * based on local array-typed variables. * * @return proposals for a variable name */ /** * Returns proposals for a variable name of a local iterable element * grouped based on local array and collection variables. * * @return proposals for a variable name */ public String[][] [[#variablea39508c0]]() { ICompilationUnit cu = getCompilationUnit(); if (cu == null) { return new String[0][]; } CompilationUnitCompletion completion = getCompletion(); LocalVariable[] [[#variablea3950840]]= completion. [[#variablea39507c0]](); return suggestElementNames( [[#variablea3950840]], [[#variablea3950740]]); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a39508c0]] | getArrayElements |
1 | 2 | [[#a39508c0]] | getIterableElements |
2 | 1 | [[#a3950840]] | localArrays |
2 | 2 | [[#a3950840]] | iterables |
3 | 1 | [[#a39507c0]] | findLocalArrays |
3 | 2 | [[#a39507c0]] | findLocalIterables |
4 | 1 | [[#a3950740]] | true |
4 | 2 | [[#a3950740]] | false |