Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 4 | 2 | 0.969 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 173 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/REMatch.java |
2 | 4 | 187 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/REMatch.java |
3 | 4 | 201 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/REMatch.java |
4 | 4 | 214 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/gnu/regexp/REMatch.java |
| |||||
/** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> begins, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index * @deprecated Use getStartIndex(int) instead. */ public int getSubStartIndex(int sub) { if (sub >= start.length) return -1; int x = start[sub]; return (x == -1) ? x: offset + x; } |
| |||||
/** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> begins, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index * @since gnu.regexp 1.1.0 */ public int getStartIndex(int sub) { if (sub >= start.length) return -1; int x = start[sub]; return (x == -1) ? x: offset + x; } |
| |||||
/** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> ends, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index * @deprecated Use getEndIndex(int) instead */ public int getSubEndIndex(int sub) { if (sub >= start.length) return -1; int x = end[sub]; return (x == -1) ? x: offset + x; } |
| |||||
/** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> ends, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index */ public int getEndIndex(int sub) { if (sub >= start.length) return -1; int x = end[sub]; return (x == -1) ? x: offset + x; } |
| |||
/** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> ends, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index */ /** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> ends, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index * @deprecated Use getEndIndex(int) instead */ /** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> begins, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index * @since gnu.regexp 1.1.0 */ /** * Returns the index within the input string used to generate this match * where subexpression number <i>sub</i> begins, or <code>-1</code> if * the subexpression does not exist. The initial position is zero. * * @param sub Subexpression index * @deprecated Use getStartIndex(int) instead. */ public int [[#variablec2a1580]](int sub) { if (sub >= start.length) return -1; int x = [[#variablec2a14c0]][sub]; return (x == -1) ? x: offset + x; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#c2a1580]] | getSubStartIndex |
1 | 2 | [[#c2a1580]] | getStartIndex |
1 | 3 | [[#c2a1580]] | getSubEndIndex |
1 | 4 | [[#c2a1580]] | getEndIndex |
2 | 1 | [[#c2a14c0]] | start |
2 | 2 | [[#c2a14c0]] | start |
2 | 3 | [[#c2a14c0]] | end |
2 | 4 | [[#c2a14c0]] | end |