Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 3 | 1 | 0.996 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 84 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/ClassDeclarationImpl.java |
2 | 17 | 109 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java |
3 | 17 | 289 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/TypeDeclarationImpl.java |
| ||||
final ASTNode node = _env.getASTNodeForBinding(typeBinding); if (node != null) { switch (node.getNodeType()) { case ASTNode.TYPE_DECLARATION: case ASTNode.ANNOTATION_TYPE_DECLARATION: case ASTNode.ENUM_DECLARATION: AbstractTypeDeclaration typeDecl = (AbstractTypeDeclaration) node; // built the ast based methods first. getASTConstructor(typeDecl, results); break; default: // the ast node for a type binding should be a AbstractTypeDeclaration. throw new IllegalStateException("expecting a AbstractTypeDeclaration but got " //$NON-NLS-1$ + node.getClass().getName()); } } |
| ||||
final ASTNode node = _env.getASTNodeForBinding(typeBinding); if (node != null) { switch (node.getNodeType()) { case ASTNode.TYPE_DECLARATION: case ASTNode.ANNOTATION_TYPE_DECLARATION: case ASTNode.ENUM_DECLARATION: AbstractTypeDeclaration typeDecl = (AbstractTypeDeclaration) node; // built the ast based methods first. getASTFields(typeDecl, results); break; default: // the ast node for a type binding should be a AbstractTypeDeclaration. throw new IllegalStateException("expecting a AbstractTypeDeclaration but got " //$NON-NLS-1$ + node.getClass().getName()); } } |
| ||||
final ASTNode node = _env.getASTNodeForBinding(typeBinding); if (node != null) { switch (node.getNodeType()) { case ASTNode.TYPE_DECLARATION: case ASTNode.ANNOTATION_TYPE_DECLARATION: case ASTNode.ENUM_DECLARATION: AbstractTypeDeclaration typeDecl = (AbstractTypeDeclaration) node; // built the ast based methods first. getASTMethods(typeDecl, results); break; default: // the ast node for a type binding should be a AbstractTypeDeclaration. throw new IllegalStateException("expecting a AbstractTypeDeclaration but got " //$NON-NLS-1$ + node.getClass().getName()); } } |
| |||
final ASTNode node = _env.getASTNodeForBinding(typeBinding); if (node != null) { switch (node.getNodeType()) { case ASTNode.TYPE_DECLARATION: case ASTNode.ANNOTATION_TYPE_DECLARATION: case ASTNode.ENUM_DECLARATION: AbstractTypeDeclaration typeDecl = (AbstractTypeDeclaration) node; [[#variableb24780e0]](typeDecl, results); break; default: // the ast node for a type binding should be a AbstractTypeDeclaration. throw new IllegalStateException("expecting a AbstractTypeDeclaration but got " //$NON-NLS-1$ + node.getClass().getName()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b24780e0]] | // built the ast based methods first. getASTConstructor |
1 | 2 | [[#b24780e0]] | // built the ast based methods first. getASTMethods |
1 | 3 | [[#b24780e0]] | // built the ast based methods first. getASTFields |