CloneSet1952


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5250.975class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15304
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java
25468
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java
Clone Instance
1
Line Count
5
Source Line
304
Source File
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);
        }


Clone Instance
2
Line Count
5
Source Line
468
Source File
plugins/org.eclipse.jdt.debug/model/org/eclipse/jdt/debug/core/JDIDebugModel.java

        /**
         * 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);
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51e78320]]
IJavaPatternBreakpoint 
12[[#51e78320]]
IJavaWatchpoint 
21[[#51e782a0]]
createPatternBreakpoint 
22[[#51e782a0]]
createWatchpoint 
31[[#51e78260]]
sourceName 
32[[#51e78260]]
typeName 
41[[#51e78140]]
pattern 
42[[#51e78140]]
fieldName 
51[[#51e78160]]
JavaPatternBreakpoint 
52[[#51e78160]]
JavaWatchpoint