Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 5 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 966 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java |
2 | 13 | 988 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java |
| ||||
/** * Appends the label for a class file to a {@link StringBuffer}. Considers the CF_* flags. * @param classFile The element to render. * @param flags The rendering flags. Flags with names starting with 'CF_' are considered. * @param buf The buffer to append the resulting label to. */ public static void getClassFileLabel(IClassFile classFile, long flags, StringBuffer buf) { if (getFlag(flags, CF_QUALIFIED)) { IPackageFragment pack = (IPackageFragment) classFile.getParent(); if ( !pack.isDefaultPackage()) { getPackageFragmentLabel(pack, (flags& QUALIFIER_FLAGS), buf); buf.append('.'); } } buf.append(classFile.getElementName()); if (getFlag(flags, CF_POST_QUALIFIED)) { buf.append(CONCAT_STRING); getPackageFragmentLabel((IPackageFragment) classFile.getParent(), flags& QUALIFIER_FLAGS, buf); } } |
| ||||
/** * Appends the label for a compilation unit to a {@link StringBuffer}. Considers the CU_* flags. * @param cu The element to render. * @param flags The rendering flags. Flags with names starting with 'CU_' are considered. * @param buf The buffer to append the resulting label to. */ public static void getCompilationUnitLabel(ICompilationUnit cu, long flags, StringBuffer buf) { if (getFlag(flags, CU_QUALIFIED)) { IPackageFragment pack = (IPackageFragment) cu.getParent(); if ( !pack.isDefaultPackage()) { getPackageFragmentLabel(pack, (flags& QUALIFIER_FLAGS), buf); buf.append('.'); } } buf.append(cu.getElementName()); if (getFlag(flags, CU_POST_QUALIFIED)) { buf.append(CONCAT_STRING); getPackageFragmentLabel((IPackageFragment) cu.getParent(), flags& QUALIFIER_FLAGS, buf); } } |
| |||
/** * Appends the label for a class file to a {@link StringBuffer}. Considers the CF_* flags. * @param classFile The element to render. * @param flags The rendering flags. Flags with names starting with 'CF_' are considered. * @param buf The buffer to append the resulting label to. */ /** * Appends the label for a compilation unit to a {@link StringBuffer}. Considers the CU_* flags. * @param cu The element to render. * @param flags The rendering flags. Flags with names starting with 'CU_' are considered. * @param buf The buffer to append the resulting label to. */ public static void [[#variablebb5cbe20]]( [[#variablebb5cbd60]] [[#variablebb5cbd00]], long flags, StringBuffer buf) { if (getFlag(flags, [[#variablebb5cbca0]])) { IPackageFragment pack = (IPackageFragment) [[#variablebb5cbd00]].getParent(); if ( !pack.isDefaultPackage()) { getPackageFragmentLabel(pack, (flags&QUALIFIER_FLAGS), buf); buf.append('.'); } } buf.append( [[#variablebb5cbd00]].getElementName()); if (getFlag(flags, [[#variablebb5cbaa0]])) { buf.append(CONCAT_STRING); getPackageFragmentLabel((IPackageFragment) [[#variablebb5cbd00]].getParent(), flags&QUALIFIER_FLAGS, buf); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb5cbe20]] | getClassFileLabel |
1 | 2 | [[#bb5cbe20]] | getCompilationUnitLabel |
2 | 1 | [[#bb5cbd60]] | IClassFile |
2 | 2 | [[#bb5cbd60]] | ICompilationUnit |
3 | 1 | [[#bb5cbd00]] | classFile |
3 | 2 | [[#bb5cbd00]] | cu |
4 | 1 | [[#bb5cbca0]] | CF_QUALIFIED |
4 | 2 | [[#bb5cbca0]] | CU_QUALIFIED |
5 | 1 | [[#bb5cbaa0]] | CF_POST_QUALIFIED |
5 | 2 | [[#bb5cbaa0]] | CU_POST_QUALIFIED |