Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 4 | 0.981 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 263 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java |
2 | 5 | 395 | plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java |
| ||||
/** * Creates and returns a line breakpoint in the type with the * given name, at the given line number. The marker associated with the * breakpoint will be created on the specified resource. If a character * range within the line is known, it may be specified by charStart/charEnd. * If hitCount is > 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 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 line 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> * @since 2.0 */ public static IJavaLineBreakpoint createLineBreakpoint(IResource resource, String typeName, int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException { if (attributes == null) { attributes = new HashMap(10); } return new JavaLineBreakpoint(resource, typeName, lineNumber, charStart, charEnd, hitCount, register, attributes); } |
| ||||
/** * Creates and returns a target pattern breakpoint for the given resource at the * given line number. Clients must set the class name pattern per target for * this type of breakpoint. * 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 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 target 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> */ public static IJavaTargetPatternBreakpoint createTargetPatternBreakpoint(IResource resource, String sourceName, int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException { if (attributes == null) { attributes = new HashMap(10); } return new JavaTargetPatternBreakpoint(resource, sourceName, lineNumber, charStart, charEnd, hitCount, register, attributes); } |
| |||
/** * Creates and returns a line breakpoint in the type with the * given name, at the given line number. The marker associated with the * breakpoint will be created on the specified resource. If a character * range within the line is known, it may be specified by charStart/charEnd. * If hitCount is > 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 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 line 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> * @since 2.0 */ /** * Creates and returns a target pattern breakpoint for the given resource at the * given line number. Clients must set the class name pattern per target for * this type of breakpoint. * 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 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 target 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> */ public static [[#variableb44cce20]] [[#variableb44ccda0]](IResource resource, String [[#variableb44ccd40]], int lineNumber, int charStart, int charEnd, int hitCount, boolean register, Map attributes) throws CoreException { if (attributes == null) { attributes = new HashMap(10); } return new [[#variableb44ccce0]](resource, [[#variableb44ccd40]], lineNumber, charStart, charEnd, hitCount, register, attributes); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b44cce20]] | IJavaLineBreakpoint |
1 | 2 | [[#b44cce20]] | IJavaTargetPatternBreakpoint |
2 | 1 | [[#b44ccda0]] | createLineBreakpoint |
2 | 2 | [[#b44ccda0]] | createTargetPatternBreakpoint |
3 | 1 | [[#b44ccd40]] | typeName |
3 | 2 | [[#b44ccd40]] | sourceName |
4 | 1 | [[#b44ccce0]] | JavaLineBreakpoint |
4 | 2 | [[#b44ccce0]] | JavaTargetPatternBreakpoint |