Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 3 | 1 | 0.995 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1979 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
2 | 12 | 3133 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
3 | 12 | 3626 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java |
| ||||
protected void consumeClassHeader() { // ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt ClassHeaderImplementsopt TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr]; if (this.currentToken == TokenNameLBRACE) { typeDecl.bodyStart = this.scanner.currentPosition; } if (this.currentElement != null) { this.restartRecovery = true; // used to avoid branching back into the regular automaton } // flush the comments related to the class header this.scanner.commentPtr = -1; } |
| ||||
protected void consumeEnumHeader() { TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr]; if (this.currentToken == TokenNameLBRACE) { typeDecl.bodyStart = this.scanner.currentPosition; } if (this.currentElement != null) { this.restartRecovery = true; // used to avoid branching back into the regular automaton } // flush the comments related to the enum header this.scanner.commentPtr = -1; } |
| ||||
protected void consumeInterfaceHeader() { // InterfaceHeader ::= InterfaceHeaderName InterfaceHeaderExtendsopt TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr]; if (this.currentToken == TokenNameLBRACE) { typeDecl.bodyStart = this.scanner.currentPosition; } if (this.currentElement != null) { this.restartRecovery = true; // used to avoid branching back into the regular automaton } // flush the comments related to the interface header this.scanner.commentPtr = -1; } |
| |||
protected void [[#variable96804720]]() { // ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt ClassHeaderImplementsopt // InterfaceHeader ::= InterfaceHeaderName InterfaceHeaderExtendsopt TypeDeclaration typeDecl = (TypeDeclaration) this.astStack[this.astPtr]; if (this.currentToken == TokenNameLBRACE) { typeDecl.bodyStart = this.scanner.currentPosition; } if (this.currentElement != null) { this.restartRecovery = true; // used to avoid branching back into the regular automaton } // flush the comments related to the class header // flush the comments related to the enum header // flush the comments related to the interface header this.scanner.commentPtr = -1; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#96804720]] | consumeClassHeader |
1 | 2 | [[#96804720]] | consumeEnumHeader |
1 | 3 | [[#96804720]] | consumeInterfaceHeader |