Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.978 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 256 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointUtils.java |
2 | 11 | 275 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/BreakpointUtils.java |
| ||||
/** * Returns the method associated with the method entry * breakpoint. * * @param breakpoint Java method entry breakpoint * @return method */ public static IMethod getMethod(IJavaMethodBreakpoint breakpoint) { String handle = breakpoint.getMarker().getAttribute(HANDLE_ID, null); if (handle != null) { IJavaElement je = JavaCore.create(handle); if (je != null) { if (je instanceof IMethod) { return (IMethod) je; } } } return null; } |
| ||||
/** * Returns the field associated with the watchpoint. * * @param breakpoint Java watchpoint * @return field */ public static IField getField(IJavaWatchpoint breakpoint) { String handle = breakpoint.getMarker().getAttribute(HANDLE_ID, null); if (handle != null) { IJavaElement je = JavaCore.create(handle); if (je != null) { if (je instanceof IField) { return (IField) je; } } } return null; } |
| |||
/** * Returns the method associated with the method entry * breakpoint. * * @param breakpoint Java method entry breakpoint * @return method */ /** * Returns the field associated with the watchpoint. * * @param breakpoint Java watchpoint * @return field */ public static [[#variable57851820]] [[#variable57851d80]]( [[#variable57851e80]] breakpoint) { String handle = breakpoint.getMarker().getAttribute(HANDLE_ID, null); if (handle != null) { IJavaElement je = JavaCore.create(handle); if (je != null) { if (je instanceof [[#variable57851820]]) { return ( [[#variable57851820]]) je; } } } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#57851820]] | IMethod |
1 | 2 | [[#57851820]] | IField |
2 | 1 | [[#57851d80]] | getMethod |
2 | 2 | [[#57851d80]] | getField |
3 | 1 | [[#57851e80]] | IJavaMethodBreakpoint |
3 | 2 | [[#57851e80]] | IJavaWatchpoint |