Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 4 | 3 | 0.972 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 124 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java |
2 | 7 | 146 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/FieldInfo.java |
3 | 7 | 234 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java |
4 | 7 | 265 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java |
| ||||
/** * Answer the name of the field. * @return char[] */ public char[] getName() { if (name == null) { // read the name int utf8Offset = constantPoolOffsets[u2At(2)] - structOffset; name = utf8At(utf8Offset + 3, u2At(utf8Offset + 1)); } return name; } |
| ||||
/** * Answer the resolved name of the receiver's type in the * class file format as specified in section 4.3.2 of the Java 2 VM spec. * * For example: * - java.lang.String is Ljava/lang/String; * - an int is I * - a 2 dimensional array of strings is [[Ljava/lang/String; * - an array of floats is [F * @return char[] */ public char[] getTypeName() { if (descriptor == null) { // read the signature int utf8Offset = constantPoolOffsets[u2At(4)] - structOffset; descriptor = utf8At(utf8Offset + 3, u2At(utf8Offset + 1)); } return descriptor; } |
| ||||
/** * Answer the receiver's method descriptor which describes the parameter & * return types as specified in section 4.3.3 of the Java 2 VM spec. * * For example: * - int foo(String) is (Ljava/lang/String;)I * - void foo(Object[]) is (I)[Ljava/lang/Object; * @return char[] */ public char[] getMethodDescriptor() { if (descriptor == null) { // read the name int utf8Offset = constantPoolOffsets[u2At(4)] - structOffset; descriptor = utf8At(utf8Offset + 3, u2At(utf8Offset + 1)); } return descriptor; } |
| ||||
/** * Answer the name of the method. * * For a constructor, answer <init> & <clinit> for a clinit method. * @return char[] */ public char[] getSelector() { if (name == null) { // read the name int utf8Offset = constantPoolOffsets[u2At(2)] - structOffset; name = utf8At(utf8Offset + 3, u2At(utf8Offset + 1)); } return name; } |
| |||
/** * Answer the receiver's method descriptor which describes the parameter & * return types as specified in section 4.3.3 of the Java 2 VM spec. * * For example: * - int foo(String) is (Ljava/lang/String;)I * - void foo(Object[]) is (I)[Ljava/lang/Object; * @return char[] */ /** * Answer the name of the method. * * For a constructor, answer <init> & <clinit> for a clinit method. * @return char[] */ /** * Answer the name of the field. * @return char[] */ /** * Answer the resolved name of the receiver's type in the * class file format as specified in section 4.3.2 of the Java 2 VM spec. * * For example: * - java.lang.String is Ljava/lang/String; * - an int is I * - a 2 dimensional array of strings is [[Ljava/lang/String; * - an array of floats is [F * @return char[] */ public char[] [[#variablec0db7640]]() { if ( [[#variable56fe7fc0]]== null) { // read the name // read the signature int utf8Offset = constantPoolOffsets[u2At( [[#variablec0db7460]])] - structOffset; [[#variable56fe7fc0]]= utf8At(utf8Offset + 3, u2At(utf8Offset + 1)); } return [[#variable56fe7fc0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c0db7640]] | getMethodDescriptor |
1 | 2 | [[#c0db7640]] | getSelector |
1 | 3 | [[#c0db7640]] | getName |
1 | 4 | [[#c0db7640]] | getTypeName |
2 | 1 | [[#56fe7fc0]] | descriptor |
2 | 2 | [[#56fe7fc0]] | name |
2 | 3 | [[#56fe7fc0]] | name |
2 | 4 | [[#56fe7fc0]] | descriptor |
3 | 1 | [[#c0db7460]] | 4 |
3 | 2 | [[#c0db7460]] | 2 |
3 | 3 | [[#c0db7460]] | 2 |
3 | 4 | [[#c0db7460]] | 4 |