Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 6 | 0.963 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 821 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java |
2 | 30 | 995 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/ReferenceTypeImpl.java |
| ||||
/** * @return Returns a list containing each Field declared in this type. */ public List fields() { if (fFields != null) { return fFields; } // Note: Fields are returned in the order they occur in the class file, therefore their // order in this list can be used for comparisons. initJdwpRequest(); try { boolean withGenericSignature = virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5); int jdwpCommand = withGenericSignature ? JdwpCommandPacket.RT_FIELDS_WITH_GENERIC: JdwpCommandPacket.RT_FIELDS; JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this ); defaultReplyErrorHandler(replyPacket.errorCode()); DataInputStream replyData = replyPacket.dataInStream(); List elements = new ArrayList(); int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$ for (int i = 0; i < nrOfElements; i++) { FieldImpl elt = FieldImpl.readWithNameSignatureModifiers(this, this, withGenericSignature, replyData); if (elt == null) { continue ; } elements.add(elt); } fFields = elements; return fFields; } catch (IOException e) { defaultIOExceptionHandler(e); return null; } finally { handledJdwpRequest(); } } |
| ||||
/** * @return Returns a list containing each Method declared directly in this type. */ public List methods() { // Note that ArrayReference overwrites this method by returning an empty list. if (fMethods != null) return fMethods; // Note: Methods are returned in the order they occur in the class file, therefore their // order in this list can be used for comparisons. initJdwpRequest(); try { boolean withGenericSignature = virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5); int jdwpCommand = withGenericSignature ? JdwpCommandPacket.RT_METHODS_WITH_GENERIC: JdwpCommandPacket.RT_METHODS; JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this ); defaultReplyErrorHandler(replyPacket.errorCode()); DataInputStream replyData = replyPacket.dataInStream(); List elements = new ArrayList(); int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$ for (int i = 0; i < nrOfElements; i++) { MethodImpl elt = MethodImpl.readWithNameSignatureModifiers(this, this, withGenericSignature, replyData); if (elt == null) { continue ; } elements.add(elt); } fMethods = elements; return fMethods; } catch (IOException e) { defaultIOExceptionHandler(e); return null; } finally { handledJdwpRequest(); } } |
| |||
/** * @return Returns a list containing each Field declared in this type. */ /** * @return Returns a list containing each Method declared directly in this type. */ public List [[#variableb31d1ee0]]() { // Note that ArrayReference overwrites this method by returning an empty list. if ( [[#variableb31d1e80]]!= null) [[#variableb31d1de0]] // Note: Fields are returned in the order they occur in the class file, therefore their // Note: Methods are returned in the order they occur in the class file, therefore their // order in this list can be used for comparisons. initJdwpRequest(); try { boolean withGenericSignature = virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5); int jdwpCommand = withGenericSignature ? JdwpCommandPacket. [[#variableb31d1d80]]: JdwpCommandPacket. [[#variableb31d1d00]]; JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this ); defaultReplyErrorHandler(replyPacket.errorCode()); DataInputStream replyData = replyPacket.dataInStream(); List elements = new ArrayList(); int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$ for (int i = 0; i < nrOfElements; i++) { [[#variableb31d1c20]] elt = [[#variableb31d1c20]].readWithNameSignatureModifiers(this, this, withGenericSignature, replyData); if (elt == null) { continue ; } elements.add(elt); } [[#variableb31d1e80]]= elements; return [[#variableb31d1e80]]; } catch (IOException e) { defaultIOExceptionHandler(e); return null; } finally { handledJdwpRequest(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b31d1ee0]] | fields |
1 | 2 | [[#b31d1ee0]] | methods |
2 | 1 | [[#b31d1e80]] | fFields |
2 | 2 | [[#b31d1e80]] | fMethods |
3 | 1 | [[#b31d1de0]] | { return fFields; } |
3 | 2 | [[#b31d1de0]] | return fMethods; |
4 | 1 | [[#b31d1d80]] | RT_FIELDS_WITH_GENERIC |
4 | 2 | [[#b31d1d80]] | RT_METHODS_WITH_GENERIC |
5 | 1 | [[#b31d1d00]] | RT_FIELDS |
5 | 2 | [[#b31d1d00]] | RT_METHODS |
6 | 1 | [[#b31d1c20]] | FieldImpl |
6 | 2 | [[#b31d1c20]] | MethodImpl |