Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.988 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 634 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java |
2 | 8 | 653 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java |
| ||||
/** * Return the index in the whole comments list {@link #getCommentList() } * of the first leading comments associated with the given node. * * @param node the node * @return 0-based index of first leading comment or -1 if node has no associated * comment before its start position. * @since 3.2 */ public int firstLeadingCommentIndex(ASTNode node) { if (node == null) { throw new IllegalArgumentException(); } if (this.commentMapper == null || node.getAST() != getAST()) { return -1; } return this.commentMapper.firstLeadingCommentIndex(node); } |
| ||||
/** * Return the index in the whole comments list {@link #getCommentList() } * of the last trailing comments associated with the given node. * * @param node the node * @return 0-based index of last trailing comment or -1 if node has no * associated comment after its end position. * @since 3.2 */ public int lastTrailingCommentIndex(ASTNode node) { if (node == null) { throw new IllegalArgumentException(); } if (this.commentMapper == null || node.getAST() != getAST()) { return -1; } return this.commentMapper.lastTrailingCommentIndex(node); } |
| |||
/** * Return the index in the whole comments list {@link #getCommentList() } * of the first leading comments associated with the given node. * * @param node the node * @return 0-based index of first leading comment or -1 if node has no associated * comment before its start position. * @since 3.2 */ /** * Return the index in the whole comments list {@link #getCommentList() } * of the last trailing comments associated with the given node. * * @param node the node * @return 0-based index of last trailing comment or -1 if node has no * associated comment after its end position. * @since 3.2 */ public int [[#variable5933aac0]](ASTNode node) { if (node == null) { throw new IllegalArgumentException(); } if (this.commentMapper == null || node.getAST() != getAST()) { return -1; } return this.commentMapper. [[#variable5933aac0]](node); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5933aac0]] | firstLeadingCommentIndex |
1 | 2 | [[#5933aac0]] | lastTrailingCommentIndex |