Example usage for Java org.eclipse.jdt.core.dom.rewrite ListRewrite fields, constructors, methods, implement or subclass
The text is from its open source code.
ASTRewrite | getASTRewrite() Returns the ASTRewrite instance from which this ListRewriter has been created from. |
List | getOriginalList() Returns the original nodes in the list property managed by this rewriter. |
List | getRewrittenList() Returns the nodes in the revised list property managed by this rewriter. |
void | insertAfter(ASTNode node, ASTNode previousElement, TextEditGroup editGroup) Inserts the given node into the list after the given element. |
void | insertAt(ASTNode node, int index, TextEditGroup editGroup) Inserts the given node into the list at the given index. |
void | insertBefore(ASTNode node, ASTNode nextElement, TextEditGroup editGroup) Inserts the given node into the list before the given element. |
void | insertFirst(ASTNode node, TextEditGroup editGroup) Inserts the given node into the list at the start of the list. |
void | insertLast(ASTNode node, TextEditGroup editGroup) Inserts the given node into the list at the end of the list. |
void | remove(ASTNode node, TextEditGroup editGroup) Removes the given node from its parent's list property in the rewriter. |
void | replace(ASTNode node, ASTNode replacement, TextEditGroup editGroup) Replaces the given node from its parent's list property in the rewriter. |