Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 3 | 5 | 0.956 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 110 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java |
2 | 14 | 188 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java |
3 | 14 | 221 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java |
| ||||
public SourceField[] getFieldHandles() { int length = this.children.length; if (length == 0) return NO_FIELDS; SourceField[] fields = new SourceField[length]; int fieldIndex = 0; for (int i = 0; i < length; i++) { IJavaElement child = this.children[i]; if (child instanceof SourceField) fields[fieldIndex++ ] = (SourceField) child; } if (fieldIndex == 0) return NO_FIELDS; if (fieldIndex < length) System.arraycopy(fields, 0, fields = new SourceField[fieldIndex], 0, fieldIndex); return fields; } |
| ||||
public SourceType[] getMemberTypeHandles() { int length = this.children.length; if (length == 0) return NO_TYPES; SourceType[] memberTypes = new SourceType[length]; int typeIndex = 0; for (int i = 0; i < length; i++) { IJavaElement child = this.children[i]; if (child instanceof SourceType) memberTypes[typeIndex++ ] = (SourceType) child; } if (typeIndex == 0) return NO_TYPES; if (typeIndex < length) System.arraycopy(memberTypes, 0, memberTypes = new SourceType[typeIndex], 0, typeIndex); return memberTypes; } |
| ||||
public SourceMethod[] getMethodHandles() { int length = this.children.length; if (length == 0) return NO_METHODS; SourceMethod[] methods = new SourceMethod[length]; int methodIndex = 0; for (int i = 0; i < length; i++) { IJavaElement child = this.children[i]; if (child instanceof SourceMethod) methods[methodIndex++ ] = (SourceMethod) child; } if (methodIndex == 0) return NO_METHODS; if (methodIndex < length) System.arraycopy(methods, 0, methods = new SourceMethod[methodIndex], 0, methodIndex); return methods; } |
| |||
public [[#variableba71a7c0]][] [[#variableba71a740]]() { int length = this.children.length; if (length == 0) return [[#variableb95abf40]]; [[#variableba71a7c0]][] [[#variableba71a640]]= new [[#variableba71a7c0]][length]; int [[#variableba71a780]]= 0; for (int i = 0; i < length; i++) { IJavaElement child = this.children[i]; if (child instanceof [[#variableba71a7c0]]) [[#variableba71a640]][ [[#variableba71a780]]++ ] = ( [[#variableba71a7c0]]) child; } if ( [[#variableba71a780]]== 0) return [[#variableb95abf40]]; if ( [[#variableba71a780]] < length) System.arraycopy( [[#variableba71a640]], 0, [[#variableba71a640]]= new [[#variableba71a7c0]][ [[#variableba71a780]]], 0, [[#variableba71a780]]); return [[#variableba71a640]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba71a7c0]] | SourceField |
1 | 2 | [[#ba71a7c0]] | SourceType |
1 | 3 | [[#ba71a7c0]] | SourceMethod |
2 | 1 | [[#ba71a740]] | getFieldHandles |
2 | 2 | [[#ba71a740]] | getMemberTypeHandles |
2 | 3 | [[#ba71a740]] | getMethodHandles |
3 | 1 | [[#b95abf40]] | NO_FIELDS |
3 | 2 | [[#b95abf40]] | NO_TYPES |
3 | 3 | [[#b95abf40]] | NO_METHODS |
4 | 1 | [[#ba71a640]] | fields |
4 | 2 | [[#ba71a640]] | memberTypes |
4 | 3 | [[#ba71a640]] | methods |
5 | 1 | [[#ba71a780]] | fieldIndex |
5 | 2 | [[#ba71a780]] | typeIndex |
5 | 3 | [[#ba71a780]] | methodIndex |