Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 1 | 0.998 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 101 | plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationContext.java |
2 | 25 | 522 | plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationContext.java |
| ||||
final char[] className = "CodeSnippetCompletion".toCharArray(); //$NON-NLS-1$ final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper( codeSnippet, this.packageName, this.imports, className, this.installedVars == null ? null: this.installedVars.className, this.localVariableNames, this.localVariableTypeNames, this.localVariableModifiers, this.declaringTypeName, this.lineSeparator ); ICompilationUnit sourceUnit = new ICompilationUnit() { public char[] getFileName() { return CharOperation.concat(className, Util.defaultJavaExtension().toCharArray()); } public char[] getContents() { return mapper.getCUSource(EvaluationContext.this.lineSeparator); } public char[] getMainTypeName() { return className; } public char[][] getPackageName() { return null; } }; |
| ||||
final char[] className = "CodeSnippetSelection".toCharArray(); //$NON-NLS-1$ final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper( codeSnippet, this.packageName, this.imports, className, this.installedVars == null ? null: this.installedVars.className, this.localVariableNames, this.localVariableTypeNames, this.localVariableModifiers, this.declaringTypeName, this.lineSeparator ); ICompilationUnit sourceUnit = new ICompilationUnit() { public char[] getFileName() { return CharOperation.concat(className, Util.defaultJavaExtension().toCharArray()); } public char[] getContents() { return mapper.getCUSource(EvaluationContext.this.lineSeparator); } public char[] getMainTypeName() { return className; } public char[][] getPackageName() { return null; } }; |
| |||
final char[] className = [[#variable5fef5840]].toCharArray(); //$NON-NLS-1$ final CodeSnippetToCuMapper mapper = new CodeSnippetToCuMapper(codeSnippet, this.packageName, this.imports, className, this.installedVars == null ? null: this.installedVars.className, this.localVariableNames, this.localVariableTypeNames, this.localVariableModifiers, this.declaringTypeName, this.lineSeparator); ICompilationUnit sourceUnit = new ICompilationUnit() { public char[] getFileName() { return CharOperation.concat(className, Util.defaultJavaExtension().toCharArray()); } public char[] getContents() { return mapper.getCUSource(EvaluationContext.this.lineSeparator); } public char[] getMainTypeName() { return className; } public char[][] getPackageName() { return null; } }; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5fef5840]] | "CodeSnippetSelection" |
1 | 2 | [[#5fef5840]] | "CodeSnippetCompletion" |