Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
52 | 3 | 6 | 0.969 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 50 | 680 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java |
2 | 50 | 247 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java |
3 | 52 | 374 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/eval/EvaluationContextWrapper.java |
| ||||
/** * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor) * @deprecated - should use codeComplete(int, ICompletionRequestor) instead */ public void codeComplete(int offset, final org.eclipse.jdt.core.ICodeCompletionRequestor requestor) throws JavaModelException { if (requestor == null) { codeComplete(offset, (ICompletionRequestor) null); return; } codeComplete( offset, new ICompletionRequestor() { public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd); } public void acceptError(IProblem error) { // was disabled in 1.0 } public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] fieldName, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptField(declaringTypePackageName, declaringTypeName, fieldName, typePackageName, typeName, completionName, modifiers, completionStart, completionEnd); } public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd); } public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) { requestor.acceptKeyword(keywordName, completionStart, completionEnd); } public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) { requestor.acceptLabel(labelName, completionStart, completionEnd); } public void acceptLocalVariable(char[] localVarName, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // skip parameter names requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd); } public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) { requestor.acceptModifier(modifierName, completionStart, completionEnd); } public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptPackage(packageName, completionName, completionStart, completionEnd); } public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd); } public void acceptVariableName(char[] typePackageName, char[] typeName, char[] varName, char[] completionName, int completionStart, int completionEnd, int relevance) { // ignore } } ); } |
| ||||
/** * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor) * @deprecated - use codeComplete(int, ICompletionRequestor) */ public void codeComplete(int offset, final ICodeCompletionRequestor requestor) throws JavaModelException { if (requestor == null) { codeComplete(offset, (ICompletionRequestor) null); return; } codeComplete( offset, new ICompletionRequestor() { public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd); } public void acceptError(IProblem error) { // was disabled in 1.0 } public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] fieldName, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptField(declaringTypePackageName, declaringTypeName, fieldName, typePackageName, typeName, completionName, modifiers, completionStart, completionEnd); } public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd); } public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) { requestor.acceptKeyword(keywordName, completionStart, completionEnd); } public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) { requestor.acceptLabel(labelName, completionStart, completionEnd); } public void acceptLocalVariable(char[] localVarName, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // skip parameter names requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd); } public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) { requestor.acceptModifier(modifierName, completionStart, completionEnd); } public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptPackage(packageName, completionName, completionStart, completionEnd); } public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd); } public void acceptVariableName(char[] typePackageName, char[] typeName, char[] varName, char[] completionName, int completionStart, int completionEnd, int relevance) { // ignore } } ); } |
| ||||
/** * @see IEvaluationContext#codeComplete(String, int, ICodeCompletionRequestor) * @deprecated - use codeComplete(String, int, ICompletionRequestor) instead */ public void codeComplete(String codeSnippet, int position, final org.eclipse.jdt.core.ICodeCompletionRequestor requestor) throws JavaModelException { if (requestor == null) { codeComplete(codeSnippet, position, (ICompletionRequestor) null); return; } codeComplete( codeSnippet, position, new ICompletionRequestor() { public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // implements interface method } public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd); } public void acceptError(IProblem error) { // was disabled in 1.0 } public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] name, char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptField(declaringTypePackageName, declaringTypeName, name, typePackageName, typeName, completionName, modifiers, completionStart, completionEnd); } public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd); } public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) { requestor.acceptKeyword(keywordName, completionStart, completionEnd); } public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) { requestor.acceptLabel(labelName, completionStart, completionEnd); } public void acceptLocalVariable(char[] name, char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // skip parameter names requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd); } public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) { requestor.acceptModifier(modifierName, completionStart, completionEnd); } public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptPackage(packageName, completionName, completionStart, completionEnd); } public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd); } public void acceptVariableName(char[] typePackageName, char[] typeName, char[] name, char[] completionName, int completionStart, int completionEnd, int relevance) { // ignore } } ); } |
| |||
/** * @see IEvaluationContext#codeComplete(String, int, ICodeCompletionRequestor) * @deprecated - use codeComplete(String, int, ICompletionRequestor) instead */ /** * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor) * @deprecated - use codeComplete(int, ICompletionRequestor) */ /** * @see ICodeAssist#codeComplete(int, ICodeCompletionRequestor) * @deprecated - should use codeComplete(int, ICompletionRequestor) instead */ public void codeComplete( [[#variable57792c00]], final [[#variable57792b80]] requestor) throws JavaModelException { if (requestor == null) { codeComplete( [[#variable577922a0]], (ICompletionRequestor) null); return; } codeComplete( [[#variable577922a0]], new ICompletionRequestor() { public void acceptAnonymousType(char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // implements interface method // ignore } public void acceptClass(char[] packageName, char[] className, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptClass(packageName, className, completionName, modifiers, completionStart, completionEnd); } public void acceptError(IProblem error) { // was disabled in 1.0 } public void acceptField(char[] declaringTypePackageName, char[] declaringTypeName, char[] [[#variable57792100]], char[] typePackageName, char[] typeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptField(declaringTypePackageName, declaringTypeName, [[#variable57792100]], typePackageName, typeName, completionName, modifiers, completionStart, completionEnd); } public void acceptInterface(char[] packageName, char[] interfaceName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { requestor.acceptInterface(packageName, interfaceName, completionName, modifiers, completionStart, completionEnd); } public void acceptKeyword(char[] keywordName, int completionStart, int completionEnd, int relevance) { requestor.acceptKeyword(keywordName, completionStart, completionEnd); } public void acceptLabel(char[] labelName, int completionStart, int completionEnd, int relevance) { requestor.acceptLabel(labelName, completionStart, completionEnd); } public void acceptLocalVariable(char[] [[#variable761e3a20]], char[] typePackageName, char[] typeName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptMethod(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // skip parameter names requestor.acceptMethod(declaringTypePackageName, declaringTypeName, selector, parameterPackageNames, parameterTypeNames, returnTypePackageName, returnTypeName, completionName, modifiers, completionStart, completionEnd); } public void acceptMethodDeclaration(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] returnTypePackageName, char[] returnTypeName, char[] completionName, int modifiers, int completionStart, int completionEnd, int relevance) { // ignore } public void acceptModifier(char[] modifierName, int completionStart, int completionEnd, int relevance) { requestor.acceptModifier(modifierName, completionStart, completionEnd); } public void acceptPackage(char[] packageName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptPackage(packageName, completionName, completionStart, completionEnd); } public void acceptType(char[] packageName, char[] typeName, char[] completionName, int completionStart, int completionEnd, int relevance) { requestor.acceptType(packageName, typeName, completionName, completionStart, completionEnd); } public void acceptVariableName(char[] typePackageName, char[] typeName, char[] [[#variable57792120]], char[] completionName, int completionStart, int completionEnd, int relevance) { // ignore } } ); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57792c00]] | String codeSnippet, int position |
1 | 2 | [[#57792c00]] | int offset |
1 | 3 | [[#57792c00]] | int offset |
2 | 1 | [[#57792b80]] | org.eclipse.jdt.core.ICodeCompletionRequestor |
2 | 2 | [[#57792b80]] | ICodeCompletionRequestor |
2 | 3 | [[#57792b80]] | org.eclipse.jdt.core.ICodeCompletionRequestor |
3 | 1 | [[#577922a0]] | codeSnippet, position |
3 | 2 | [[#577922a0]] | offset |
3 | 3 | [[#577922a0]] | offset |
4 | 1 | [[#57792100]] | name |
4 | 2 | [[#57792100]] | fieldName |
4 | 3 | [[#57792100]] | fieldName |
5 | 1 | [[#761e3a20]] | name |
5 | 2 | [[#761e3a20]] | localVarName |
5 | 3 | [[#761e3a20]] | localVarName |
6 | 1 | [[#57792120]] | name |
6 | 2 | [[#57792120]] | varName |
6 | 3 | [[#57792120]] | varName |