Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.956 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 223 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ListRewrite.java |
2 | 5 | 243 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ListRewrite.java |
| ||||
/** * Inserts the given node into the list at the start of the list. * Equivalent to <code>insertAt(node, 0, editGroup)</code>. * * @param node the node to insert * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not part * of this rewriter's AST, or if the inserted node is not a new node (or * placeholder), or if the described modification is otherwise invalid * (not a member of this node's original list) * @see #insertAt(ASTNode, int, TextEditGroup) */ public void insertFirst(ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } internalInsertAt(node, 0, false, editGroup); } |
| ||||
/** * Inserts the given node into the list at the end of the list. * Equivalent to <code>insertAt(node, -1, editGroup)</code>. * * @param node the node to insert * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not part * of this rewriter's AST, or if the inserted node is not a new node (or * placeholder), or if the described modification is otherwise invalid * (not a member of this node's original list) * @see #insertAt(ASTNode, int, TextEditGroup) */ public void insertLast(ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } internalInsertAt(node, -1, true, editGroup); } |
| |||
/** * Inserts the given node into the list at the start of the list. * Equivalent to <code>insertAt(node, 0, editGroup)</code>. * * @param node the node to insert * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not part * of this rewriter's AST, or if the inserted node is not a new node (or * placeholder), or if the described modification is otherwise invalid * (not a member of this node's original list) * @see #insertAt(ASTNode, int, TextEditGroup) */ /** * Inserts the given node into the list at the end of the list. * Equivalent to <code>insertAt(node, -1, editGroup)</code>. * * @param node the node to insert * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not part * of this rewriter's AST, or if the inserted node is not a new node (or * placeholder), or if the described modification is otherwise invalid * (not a member of this node's original list) * @see #insertAt(ASTNode, int, TextEditGroup) */ public void [[#variable94d92400]](ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } internalInsertAt(node, [[#variable94d923a0]], [[#variable94d922a0]], editGroup); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#94d92400]] | insertFirst |
1 | 2 | [[#94d92400]] | insertLast |
2 | 1 | [[#94d923a0]] | 0 |
2 | 2 | [[#94d923a0]] | -1 |
3 | 1 | [[#94d922a0]] | false |
3 | 2 | [[#94d922a0]] | true |