/** * Creates and returns a placeholder node for a true copy of a range of nodes of the * current list. * The placeholder node can either be inserted as new or used to replace an * existing node. When the document is rewritten, a copy of the source code * for the given node range is inserted into the output document at the position * corresponding to the placeholder (indentation is adjusted). * * @param first the node that starts the range * @param last the node that ends the range * @return the new placeholder node * @throws IllegalArgumentException An exception is thrown if the first or last node * are <code>null</code>, if a node is not a child of the current list or if the first node * is not before the last node. An <code>IllegalArgumentException</code> is * also thrown if the copied range is overlapping with an other moved or copied range. */ public final ASTNode createCopyTarget(ASTNode first, ASTNode last) { if (first == last) { return this.rewriter.createCopyTarget(first); } else { return createTargetNode(first, last, false, null, null); } }
/** * Creates and returns a placeholder node for a true copy of a range of nodes of the * current list. * The placeholder node can either be inserted as new or used to replace an * existing node. When the document is rewritten, a copy of the source code * for the given node range is inserted into the output document at the position * corresponding to the placeholder (indentation is adjusted). * * @param first the node that starts the range * @param last the node that ends the range * @return the new placeholder node * @throws IllegalArgumentException An exception is thrown if the first or last node * are <code>null</code>, if a node is not a child of the current list or if the first node * is not before the last node. An <code>IllegalArgumentException</code> is * also thrown if the copied range is overlapping with an other moved or copied range. */ public final ASTNode createCopyTarget(ASTNode first, ASTNode last) { if (first == last) { return this.rewriter.createCopyTarget(first); } else { return createTargetNode(first, last, false, null, null); } }
/** * Creates and returns a placeholder node for a true copy of a range of nodes of the * current list. * The placeholder node can either be inserted as new or used to replace an * existing node. When the document is rewritten, a copy of the source code * for the given node range is inserted into the output document at the position * corresponding to the placeholder (indentation is adjusted). * * @param first the node that starts the range * @param last the node that ends the range * @return the new placeholder node * @throws IllegalArgumentException An exception is thrown if the first or last node * are <code>null</code>, if a node is not a child of the current list or if the first node * is not before the last node. An <code>IllegalArgumentException</code> is * also thrown if the copied range is overlapping with an other moved or copied range. */ public final ASTNode createCopyTarget(ASTNode first, ASTNode last) { if (first == last) { return this.rewriter.createCopyTarget(first); } else { return createTargetNode(first, last, false, null, null); } }
/** * Creates and returns a placeholder node for a true copy of a range of nodes of the * current list. * The placeholder node can either be inserted as new or used to replace an * existing node. When the document is rewritten, a copy of the source code * for the given node range is inserted into the output document at the position * corresponding to the placeholder (indentation is adjusted). * * @param first the node that starts the range * @param last the node that ends the range * @return the new placeholder node * @throws IllegalArgumentException An exception is thrown if the first or last node * are <code>null</code>, if a node is not a child of the current list or if the first node * is not before the last node. An <code>IllegalArgumentException</code> is * also thrown if the copied range is overlapping with an other moved or copied range. */ public final ASTNode createCopyTarget(ASTNode first, ASTNode last) { if (first == last) { return this.rewriter.createCopyTarget(first); } else { return createTargetNode(first, last, false, null, null); } }
/** * Creates and returns a placeholder node for a true copy of a range of nodes of the * current list. * The placeholder node can either be inserted as new or used to replace an * existing node. When the document is rewritten, a copy of the source code * for the given node range is inserted into the output document at the position * corresponding to the placeholder (indentation is adjusted). * * @param first the node that starts the range * @param last the node that ends the range * @return the new placeholder node * @throws IllegalArgumentException An exception is thrown if the first or last node * are <code>null</code>, if a node is not a child of the current list or if the first node * is not before the last node. An <code>IllegalArgumentException</code> is * also thrown if the copied range is overlapping with an other moved or copied range. */ public final ASTNode createCopyTarget(ASTNode first, ASTNode last) { if (first == last) { return this.rewriter.createCopyTarget(first); } else { return createTargetNode(first, last, false, null, null); } }
/** * Creates and returns a placeholder node for a true copy of a range of nodes of the * current list. * The placeholder node can either be inserted as new or used to replace an * existing node. When the document is rewritten, a copy of the source code * for the given node range is inserted into the output document at the position * corresponding to the placeholder (indentation is adjusted). * * @param first the node that starts the range * @param last the node that ends the range * @return the new placeholder node * @throws IllegalArgumentException An exception is thrown if the first or last node * are <code>null</code>, if a node is not a child of the current list or if the first node * is not before the last node. An <code>IllegalArgumentException</code> is * also thrown if the copied range is overlapping with an other moved or copied range. */ public final ASTNode createCopyTarget(ASTNode first, ASTNode last) { if (first == last) { return this.rewriter.createCopyTarget(first); } else { return createTargetNode(first, last, false, null, null); } }
return this.rewriter.createMoveTarget(first); } else { return createTargetNode(first, last, true, replacingNode, editGroup);
return this.rewriter.createMoveTarget(first); } else { return createTargetNode(first, last, true, replacingNode, editGroup);
return this.rewriter.createMoveTarget(first); } else { return createTargetNode(first, last, true, replacingNode, editGroup);
return this.rewriter.createMoveTarget(first); } else { return createTargetNode(first, last, true, replacingNode, editGroup);
return this.rewriter.createMoveTarget(first); } else { return createTargetNode(first, last, true, replacingNode, editGroup);
return this.rewriter.createMoveTarget(first); } else { return createTargetNode(first, last, true, replacingNode, editGroup);