Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 5 | 0.978 | class_body_declarations[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 40 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/ConstructorPattern.java |
2 | 18 | 46 | plugins/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MethodPattern.java |
| ||||
// Signatures and arguments for generic search char[][][] parametersTypeSignatures; char[][][][] parametersTypeArguments; boolean constructorParameters = false; char[][] constructorArguments; protected static char[][] REF_CATEGORIES = { CONSTRUCTOR_REF }; protected static char[][] REF_AND_DECL_CATEGORIES = { CONSTRUCTOR_REF, CONSTRUCTOR_DECL }; protected static char[][] DECL_CATEGORIES = { CONSTRUCTOR_DECL }; /** * Constructor entries are encoded as TypeName '/' Arity: * e.g. 'X/0' */ public static char[] createIndexKey(char[] typeName, int argCount) { char[] countChars = argCount < 10 ? COUNTS[argCount]: ("/" + String.valueOf(argCount)).toCharArray(); //$NON-NLS-1$ return CharOperation.concat(typeName, countChars); } |
| ||||
char[][][] parametersTypeSignatures; char[][][][] parametersTypeArguments; boolean methodParameters = false; char[][] methodArguments; protected static char[][] REF_CATEGORIES = { METHOD_REF }; protected static char[][] REF_AND_DECL_CATEGORIES = { METHOD_REF, METHOD_DECL }; protected static char[][] DECL_CATEGORIES = { METHOD_DECL }; /** * Method entries are encoded as selector '/' Arity: * e.g. 'foo/0' */ public static char[] createIndexKey(char[] selector, int argCount) { char[] countChars = argCount < 10 ? COUNTS[argCount]: ("/" + String.valueOf(argCount)).toCharArray(); //$NON-NLS-1$ return CharOperation.concat(selector, countChars); } |
| |||
// Signatures and arguments for generic search char[][][] parametersTypeSignatures; char[][][][] parametersTypeArguments; boolean [[#variable587ff700]]= false; char[][] [[#variable587ff6a0]]; protected static char[][] REF_CATEGORIES = { [[#variable587ff5c0]] }; protected static char[][] REF_AND_DECL_CATEGORIES = { [[#variable587ff5c0]], [[#variable587ff560]] }; protected static char[][] DECL_CATEGORIES = { [[#variable587ff560]] }; /** * Constructor entries are encoded as TypeName '/' Arity: * e.g. 'X/0' */ /** * Method entries are encoded as selector '/' Arity: * e.g. 'foo/0' */ public static char[] createIndexKey(char[] [[#variable527be6e0]], int argCount) { char[] countChars = argCount < 10 ? COUNTS[argCount]: ("/" + String.valueOf(argCount)).toCharArray(); //$NON-NLS-1$ return CharOperation.concat( [[#variable527be6e0]], countChars); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#587ff700]] | constructorParameters |
1 | 2 | [[#587ff700]] | methodParameters |
2 | 1 | [[#587ff6a0]] | constructorArguments |
2 | 2 | [[#587ff6a0]] | methodArguments |
3 | 1 | [[#587ff5c0]] | CONSTRUCTOR_REF |
3 | 2 | [[#587ff5c0]] | METHOD_REF |
4 | 1 | [[#587ff560]] | CONSTRUCTOR_DECL |
4 | 2 | [[#587ff560]] | METHOD_DECL |
5 | 1 | [[#527be6e0]] | typeName |
5 | 2 | [[#527be6e0]] | selector |