CloneSet5577


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16877
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java
261006
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java
Clone Instance
1
Line Count
6
Source Line
877
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java

        /**
         * Sets the character indices of the subrange in the
         * source file buffer containing the relevant token being
         * completed. This token is either the identifier or
         * Java language keyword under, or immediately preceding,
         * the original request offset. If the original request
         * offset is not within or immediately after an identifier
         * or keyword, then the source range begins at original
         * request offset and is empty.
         * <p>
         * If not set, defaults to empty subrange at [0,0).
         * </p>
         * 
         * @param startIndex character index of token start position (inclusive)
         * @param endIndex character index of token end position (exclusive)
         */
        public void setTokenRange(int startIndex, int endIndex) {
                if (startIndex < 0 || endIndex < startIndex) {
                        throw new IllegalArgumentException();
                }
                this.tokenStart = startIndex;
                this.tokenEnd = endIndex;
        }


Clone Instance
2
Line Count
6
Source Line
1006
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java

        /**
         * Sets the character indices of the subrange in the
         * source file buffer to be replaced by the completion
         * string. If the subrange is empty
         * (<code>startIndex == endIndex</code>),
         * the completion string is to be inserted at this
         * index.
         * <p>
         * If not set, defaults to empty subrange at [0,0).
         * </p>
         * <p>
         * The completion engine creates instances of this class and sets
         * its properties; this method is not intended to be used by other clients.
         * </p>
         * 
         * @param startIndex character index of replacement start position (inclusive)
         * @param endIndex character index of replacement end position (exclusive)
         */
        public void setReplaceRange(int startIndex, int endIndex) {
                if (startIndex < 0 || endIndex < startIndex) {
                        throw new IllegalArgumentException();
                }
                this.replaceStart = startIndex;
                this.replaceEnd = endIndex;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Sets the character indices of the subrange in the
         * source file buffer containing the relevant token being
         * completed. This token is either the identifier or
         * Java language keyword under, or immediately preceding,
         * the original request offset. If the original request
         * offset is not within or immediately after an identifier
         * or keyword, then the source range begins at original
         * request offset and is empty.
         * <p>
         * If not set, defaults to empty subrange at [0,0).
         * </p>
         * 
         * @param startIndex character index of token start position (inclusive)
         * @param endIndex character index of token end position (exclusive)
         */
/**
         * Sets the character indices of the subrange in the
         * source file buffer to be replaced by the completion
         * string. If the subrange is empty
         * (<code>startIndex == endIndex</code>),
         * the completion string is to be inserted at this
         * index.
         * <p>
         * If not set, defaults to empty subrange at [0,0).
         * </p>
         * <p>
         * The completion engine creates instances of this class and sets
         * its properties; this method is not intended to be used by other clients.
         * </p>
         * 
         * @param startIndex character index of replacement start position (inclusive)
         * @param endIndex character index of replacement end position (exclusive)
         */
public void [[#variable990e0960]](int startIndex, int endIndex) {
  if (startIndex < 0 || endIndex < startIndex) {
    throw new IllegalArgumentException();
  }
  this. [[#variable990e08e0]]= startIndex;
  this. [[#variable990e0860]]= endIndex;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#990e0960]]
setTokenRange 
12[[#990e0960]]
setReplaceRange 
21[[#990e08e0]]
tokenStart 
22[[#990e08e0]]
replaceStart 
31[[#990e0860]]
tokenEnd 
32[[#990e0860]]
replaceEnd