CloneSet1213


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13250.979class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113966
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java
213988
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java
Clone Instance
1
Line Count
13
Source Line
966
Source File
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);
                }
        }


Clone Instance
2
Line Count
13
Source Line
988
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java

        /**
         * 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);
                }
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb5cbe20]]
getClassFileLabel 
12[[#bb5cbe20]]
getCompilationUnitLabel 
21[[#bb5cbd60]]
IClassFile 
22[[#bb5cbd60]]
ICompilationUnit 
31[[#bb5cbd00]]
classFile 
32[[#bb5cbd00]]
cu 
41[[#bb5cbca0]]
CF_QUALIFIED 
42[[#bb5cbca0]]
CU_QUALIFIED 
51[[#bb5cbaa0]]
CF_POST_QUALIFIED 
52[[#bb5cbaa0]]
CU_POST_QUALIFIED