Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.977 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 877 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/CompletionProposal.java |
2 | 6 | 1006 | 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; } |
| ||||
/** * 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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#990e0960]] | setTokenRange |
1 | 2 | [[#990e0960]] | setReplaceRange |
2 | 1 | [[#990e08e0]] | tokenStart |
2 | 2 | [[#990e08e0]] | replaceStart |
3 | 1 | [[#990e0860]] | tokenEnd |
3 | 2 | [[#990e0860]] | replaceEnd |