| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 20 | 2 | 3 | 0.982 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 16 | 6555 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| 2 | 20 | 6584 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| ||||
protected void consumeStatementBreak() {
// BreakStatement ::= 'break' ';'
// break pushs a position on this.intStack in case there is no label
pushOnAstStack(new BreakStatement(null, this.intStack[this.intPtr-- ], this.endPosition));
}
protected void consumeStatementBreakWithLabel() {
// BreakStatement ::= 'break' Identifier ';'
// break pushs a position on this.intStack in case there is no label
pushOnAstStack(
new BreakStatement(
this.identifierStack[this.identifierPtr-- ],
this.intStack[this.intPtr-- ],
this.endPosition));
this.identifierLengthPtr--;
}
|
| ||||
protected void consumeStatementContinue() {
// ContinueStatement ::= 'continue' ';'
// continue pushs a position on this.intStack in case there is no label
pushOnAstStack(
new ContinueStatement(
null,
this.intStack[this.intPtr-- ],
this.endPosition));
}
protected void consumeStatementContinueWithLabel() {
// ContinueStatement ::= 'continue' Identifier ';'
// continue pushs a position on this.intStack in case there is no label
pushOnAstStack(
new ContinueStatement(
this.identifierStack[this.identifierPtr-- ],
this.intStack[this.intPtr-- ],
this.endPosition));
this.identifierLengthPtr--;
}
|
| |||
protected void [[#variableb4c3c9e0]]() {
// ContinueStatement ::= 'continue' ';'
// continue pushs a position on this.intStack in case there is no label
// BreakStatement ::= 'break' ';'
// break pushs a position on this.intStack in case there is no label
pushOnAstStack(new [[#variableb4c3c9a0]](null, this.intStack[this.intPtr-- ], this.endPosition));
}
protected void [[#variableb4c3c900]]() {
// ContinueStatement ::= 'continue' Identifier ';'
// continue pushs a position on this.intStack in case there is no label
// BreakStatement ::= 'break' Identifier ';'
// break pushs a position on this.intStack in case there is no label
pushOnAstStack(new [[#variableb4c3c9a0]](this.identifierStack[this.identifierPtr-- ], this.intStack[this.intPtr-- ], this.endPosition));
this.identifierLengthPtr--;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b4c3c9e0]] | consumeStatementContinue |
| 1 | 2 | [[#b4c3c9e0]] | consumeStatementBreak |
| 2 | 1 | [[#b4c3c9a0]] | ContinueStatement |
| 2 | 2 | [[#b4c3c9a0]] | BreakStatement |
| 3 | 1 | [[#b4c3c900]] | consumeStatementContinueWithLabel |
| 3 | 2 | [[#b4c3c900]] | consumeStatementBreakWithLabel |