Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 5 | 0.975 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 304 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java |
2 | 5 | 468 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java |
| ||||
/** * Creates and returns a pattern breakpoint for the given resource at the * given line number, which is installed in all classes whose fully * qualified name matches the given pattern. * If hitCount > 0, the breakpoint will suspend execution when it is * "hit" the specified number of times. * * @param resource the resource on which to create the associated breakpoint * marker * @param sourceName the name of the source file in which the breakpoint is * set, or <code>null</code>. When specified, the pattern breakpoint will * install itself in classes that have a source file name debug attribute * that matches this value, and satisfies the class name pattern. * @param pattern the class name pattern in which the pattern breakpoint should * be installed. The pattern breakpoint will install itself in every class which * matches the pattern. * @param lineNumber the lineNumber on which the breakpoint is set - line * numbers are 1 based, associated with the source file in which * the breakpoint is set * @param charStart the first character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param charEnd the last character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param hitCount the number of times the breakpoint will be hit before * suspending execution - 0 if it should always suspend * @param register whether to add this breakpoint to the breakpoint manager * @param attributes a map of client defined attributes that should be assigned * to the underlying breakpoint marker on creation, or <code>null</code> if none. * @return a pattern breakpoint * @exception CoreException If this method fails. Reasons include:<ul> *<li>Failure creating underlying marker. The exception's status contains * the underlying exception responsible for the failure.</li></ul> * @deprecated use <code>createStratumBreakpoint</code> instead */ public static IJavaPatternBreakpoint createPatternBreakpoint(IResource resource, String sourceName, String pattern, int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException { if (attributes == null) { attributes = new HashMap(10); } return new JavaPatternBreakpoint(resource, sourceName, pattern, lineNumber, charStart, charEnd, hitCount, register, attributes); } |
| ||||
/** * Creates and returns a watchpoint on a field with the given name * in a type with the given name. * The marker associated with the breakpoint will be created on the specified resource. * If hitCount > 0, the breakpoint will suspend execution when it is * "hit" the specified number of times. * * @param resource the resource on which to create the associated breakpoint * marker * @param typeName the fully qualified name of the type the breakpoint is * to be installed in. If the breakpoint is to be installed in an inner type, * it is sufficient to provide the name of the top level enclosing type. * If an inner class name is specified, it should be formatted as the * associated class file name (i.e. with <code>$</code>). For example, * <code>example.SomeClass$InnerType</code>, could be specified, but * <code>example.SomeClass</code> is sufficient. * @param fieldName the name of the field on which to suspend (on access or modification) * @param lineNumber the lineNumber on which the breakpoint is set - line * numbers are 1 based, associated with the source file in which * the breakpoint is set * @param charStart the first character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param charEnd the last character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param hitCount the number of times the breakpoint will be hit before * suspending execution - 0 if it should always suspend * @param register whether to add this breakpoint to the breakpoint manager * @param attributes a map of client defined attributes that should be assigned * to the underlying breakpoint marker on creation, or <code>null</code> if none. * @return a watchpoint * @exception CoreException If this method fails. Reasons include:<ul> *<li>Failure creating underlying marker. The CoreException's status contains * the underlying exception responsible for the failure.</li></ul> * @since 2.0 */ public static IJavaWatchpoint createWatchpoint(IResource resource, String typeName, String fieldName, int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException { if (attributes == null) { attributes = new HashMap(10); } return new JavaWatchpoint(resource, typeName, fieldName, lineNumber, charStart, charEnd, hitCount, register, attributes); } |
| |||
/** * Creates and returns a pattern breakpoint for the given resource at the * given line number, which is installed in all classes whose fully * qualified name matches the given pattern. * If hitCount > 0, the breakpoint will suspend execution when it is * "hit" the specified number of times. * * @param resource the resource on which to create the associated breakpoint * marker * @param sourceName the name of the source file in which the breakpoint is * set, or <code>null</code>. When specified, the pattern breakpoint will * install itself in classes that have a source file name debug attribute * that matches this value, and satisfies the class name pattern. * @param pattern the class name pattern in which the pattern breakpoint should * be installed. The pattern breakpoint will install itself in every class which * matches the pattern. * @param lineNumber the lineNumber on which the breakpoint is set - line * numbers are 1 based, associated with the source file in which * the breakpoint is set * @param charStart the first character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param charEnd the last character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param hitCount the number of times the breakpoint will be hit before * suspending execution - 0 if it should always suspend * @param register whether to add this breakpoint to the breakpoint manager * @param attributes a map of client defined attributes that should be assigned * to the underlying breakpoint marker on creation, or <code>null</code> if none. * @return a pattern breakpoint * @exception CoreException If this method fails. Reasons include:<ul> *<li>Failure creating underlying marker. The exception's status contains * the underlying exception responsible for the failure.</li></ul> * @deprecated use <code>createStratumBreakpoint</code> instead */ /** * Creates and returns a watchpoint on a field with the given name * in a type with the given name. * The marker associated with the breakpoint will be created on the specified resource. * If hitCount > 0, the breakpoint will suspend execution when it is * "hit" the specified number of times. * * @param resource the resource on which to create the associated breakpoint * marker * @param typeName the fully qualified name of the type the breakpoint is * to be installed in. If the breakpoint is to be installed in an inner type, * it is sufficient to provide the name of the top level enclosing type. * If an inner class name is specified, it should be formatted as the * associated class file name (i.e. with <code>$</code>). For example, * <code>example.SomeClass$InnerType</code>, could be specified, but * <code>example.SomeClass</code> is sufficient. * @param fieldName the name of the field on which to suspend (on access or modification) * @param lineNumber the lineNumber on which the breakpoint is set - line * numbers are 1 based, associated with the source file in which * the breakpoint is set * @param charStart the first character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param charEnd the last character index associated with the breakpoint, * or -1 if unspecified, in the source file in which the breakpoint is set * @param hitCount the number of times the breakpoint will be hit before * suspending execution - 0 if it should always suspend * @param register whether to add this breakpoint to the breakpoint manager * @param attributes a map of client defined attributes that should be assigned * to the underlying breakpoint marker on creation, or <code>null</code> if none. * @return a watchpoint * @exception CoreException If this method fails. Reasons include:<ul> *<li>Failure creating underlying marker. The CoreException's status contains * the underlying exception responsible for the failure.</li></ul> * @since 2.0 */ public static [[#variable51e78320]] [[#variable51e782a0]](IResource resource, String [[#variable51e78260]], String [[#variable51e78140]], int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException { if (attributes == null) { attributes = new HashMap(10); } return new [[#variable51e78160]](resource, [[#variable51e78260]], [[#variable51e78140]], lineNumber, charStart, charEnd, hitCount, register, attributes); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#51e78320]] | IJavaPatternBreakpoint |
1 | 2 | [[#51e78320]] | IJavaWatchpoint |
2 | 1 | [[#51e782a0]] | createPatternBreakpoint |
2 | 2 | [[#51e782a0]] | createWatchpoint |
3 | 1 | [[#51e78260]] | sourceName |
3 | 2 | [[#51e78260]] | typeName |
4 | 1 | [[#51e78140]] | pattern |
4 | 2 | [[#51e78140]] | fieldName |
5 | 1 | [[#51e78160]] | JavaPatternBreakpoint |
5 | 2 | [[#51e78160]] | JavaWatchpoint |