Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 4 | 4 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 142 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIClassType.java |
2 | 18 | 165 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIClassType.java |
3 | 18 | 65 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIInterfaceType.java |
4 | 18 | 88 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIInterfaceType.java |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaClassType#getAllInterfaces() */ public IJavaInterfaceType[] getAllInterfaces() throws DebugException { try { List interfaceList = ((ClassType) getUnderlyingType()).allInterfaces(); List javaInterfaceTypeList = new ArrayList(interfaceList.size()); Iterator iterator = interfaceList.iterator(); while (iterator.hasNext()) { InterfaceType interfaceType = (InterfaceType) iterator.next(); if (interfaceType != null) { javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType)); } } IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()]; javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray); return javaInterfaceTypeArray; } catch (RuntimeException re) { targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] { re.toString() } ), re); } return new IJavaInterfaceType[0]; } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaClassType#getInterfaces() */ public IJavaInterfaceType[] getInterfaces() throws DebugException { try { List interfaceList = ((ClassType) getUnderlyingType()).interfaces(); List javaInterfaceTypeList = new ArrayList(interfaceList.size()); Iterator iterator = interfaceList.iterator(); while (iterator.hasNext()) { InterfaceType interfaceType = (InterfaceType) iterator.next(); if (interfaceType != null) { javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType)); } } IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()]; javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray); return javaInterfaceTypeArray; } catch (RuntimeException re) { targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] { re.toString() } ), re); } return new IJavaInterfaceType[0]; } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSubInterfaces() */ public IJavaInterfaceType[] getSubInterfaces() throws DebugException { try { List subList = ((InterfaceType) getUnderlyingType()).subinterfaces(); List javaInterfaceTypeList = new ArrayList(subList.size()); Iterator iterator = subList.iterator(); while (iterator.hasNext()) { InterfaceType interfaceType = (InterfaceType) iterator.next(); if (interfaceType != null) { javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType)); } } IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()]; javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray); return javaInterfaceTypeArray; } catch (RuntimeException re) { targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] { re.toString() } ), re); } return new IJavaInterfaceType[0]; } |
| ||||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSuperInterfaces() */ public IJavaInterfaceType[] getSuperInterfaces() throws DebugException { try { List superList = ((InterfaceType) getUnderlyingType()).superinterfaces(); List javaInterfaceTypeList = new ArrayList(superList.size()); Iterator iterator = superList.iterator(); while (iterator.hasNext()) { InterfaceType interfaceType = (InterfaceType) iterator.next(); if (interfaceType != null) { javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType)); } } IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()]; javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray); return javaInterfaceTypeArray; } catch (RuntimeException re) { targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] { re.toString() } ), re); } return new IJavaInterfaceType[0]; } |
| |||
/* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSubInterfaces() */ /* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaInterfaceType#getSuperInterfaces() */ /* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaClassType#getAllInterfaces() */ /* (non-Javadoc) * @see org.eclipse.jdt.debug.core.IJavaClassType#getInterfaces() */ public IJavaInterfaceType[] [[#variable56f3dea0]]() throws DebugException { try { List [[#variable56f3de20]]= (( [[#variable56f3dda0]]) getUnderlyingType()). [[#variable56f3dd40]](); List javaInterfaceTypeList = new ArrayList( [[#variable56f3de20]].size()); Iterator iterator = [[#variable56f3de20]].iterator(); while (iterator.hasNext()) { InterfaceType interfaceType = (InterfaceType) iterator.next(); if (interfaceType != null) { javaInterfaceTypeList.add(JDIType.createType(getJavaDebugTarget(), interfaceType)); } } IJavaInterfaceType[] javaInterfaceTypeArray = new IJavaInterfaceType[javaInterfaceTypeList.size()]; javaInterfaceTypeArray = (IJavaInterfaceType[]) javaInterfaceTypeList.toArray(javaInterfaceTypeArray); return javaInterfaceTypeArray; } catch (RuntimeException re) { targetRequestFailed(MessageFormat.format(JDIDebugModelMessages.JDIClassType_exception_while_retrieving_superclass, new String[] { re.toString() } ), re); } return new IJavaInterfaceType[0]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56f3dea0]] | getSubInterfaces |
1 | 2 | [[#56f3dea0]] | getSuperInterfaces |
1 | 3 | [[#56f3dea0]] | getAllInterfaces |
1 | 4 | [[#56f3dea0]] | getInterfaces |
2 | 1 | [[#56f3de20]] | subList |
2 | 2 | [[#56f3de20]] | superList |
2 | 3 | [[#56f3de20]] | interfaceList |
2 | 4 | [[#56f3de20]] | interfaceList |
3 | 1 | [[#56f3dda0]] | InterfaceType |
3 | 2 | [[#56f3dda0]] | InterfaceType |
3 | 3 | [[#56f3dda0]] | ClassType |
3 | 4 | [[#56f3dda0]] | ClassType |
4 | 1 | [[#56f3dd40]] | subinterfaces |
4 | 2 | [[#56f3dd40]] | superinterfaces |
4 | 3 | [[#56f3dd40]] | allInterfaces |
4 | 4 | [[#56f3dd40]] | interfaces |