Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 3 | 0.984 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 107 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java |
2 | 8 | 127 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java |
3 | 8 | 144 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/StubUtility.java |
| ||||
Template template = getCodeTemplate(templateName, project); if (template == null) { return bodyStatement; } CodeTemplateContext context = new CodeTemplateContext(template.getContextTypeId(), project, lineDelimiter); context.setVariable(CodeTemplateContextType.ENCLOSING_METHOD, methodName); context.setVariable(CodeTemplateContextType.ENCLOSING_TYPE, destTypeName); context.setVariable(CodeTemplateContextType.BODY_STATEMENT, bodyStatement); |
| ||||
Template template = getCodeTemplate(templateName, project); if (template == null) { return null; } CodeTemplateContext context = new CodeTemplateContext(template.getContextTypeId(), project, lineDelimiter); context.setVariable(CodeTemplateContextType.ENCLOSING_METHOD, methodName); context.setVariable(CodeTemplateContextType.ENCLOSING_TYPE, destTypeName); context.setVariable(CodeTemplateContextType.FIELD, fieldName); |
| ||||
Template template = getCodeTemplate(templateName, project); if (template == null) { return null; } CodeTemplateContext context = new CodeTemplateContext(template.getContextTypeId(), project, lineDelimiter); context.setVariable(CodeTemplateContextType.ENCLOSING_METHOD, methodName); context.setVariable(CodeTemplateContextType.ENCLOSING_TYPE, destTypeName); context.setVariable(CodeTemplateContextType.FIELD, fieldName); |
| |||
Template template = getCodeTemplate(templateName, project); if (template == null) { return [[#variable59d21c20]]; } CodeTemplateContext context = new CodeTemplateContext(template.getContextTypeId(), project, lineDelimiter); context.setVariable(CodeTemplateContextType.ENCLOSING_METHOD, methodName); context.setVariable(CodeTemplateContextType.ENCLOSING_TYPE, destTypeName); context.setVariable(CodeTemplateContextType. [[#variable59b99500]], [[#variable59b98a00]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#59d21c20]] | bodyStatement |
1 | 2 | [[#59d21c20]] | null |
1 | 3 | [[#59d21c20]] | null |
2 | 1 | [[#59b99500]] | BODY_STATEMENT |
2 | 2 | [[#59b99500]] | FIELD |
2 | 3 | [[#59b99500]] | FIELD |
3 | 1 | [[#59b98a00]] | bodyStatement |
3 | 2 | [[#59b98a00]] | fieldName |
3 | 3 | [[#59b98a00]] | fieldName |