Java org.eclipse.jdt.core.dom.rewrite ListRewrite fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom.rewrite ListRewrite fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom.rewrite ListRewrite.

The text is from its open source code.

Method

ASTRewritegetASTRewrite()
Returns the ASTRewrite instance from which this ListRewriter has been created from.
ListgetOriginalList()
Returns the original nodes in the list property managed by this rewriter.
ListgetRewrittenList()
Returns the nodes in the revised list property managed by this rewriter.
voidinsertAfter(ASTNode node, ASTNode previousElement, TextEditGroup editGroup)
Inserts the given node into the list after the given element.
voidinsertAt(ASTNode node, int index, TextEditGroup editGroup)
Inserts the given node into the list at the given index.
voidinsertBefore(ASTNode node, ASTNode nextElement, TextEditGroup editGroup)
Inserts the given node into the list before the given element.
voidinsertFirst(ASTNode node, TextEditGroup editGroup)
Inserts the given node into the list at the start of the list.
voidinsertLast(ASTNode node, TextEditGroup editGroup)
Inserts the given node into the list at the end of the list.
voidremove(ASTNode node, TextEditGroup editGroup)
Removes the given node from its parent's list property in the rewriter.
voidreplace(ASTNode node, ASTNode replacement, TextEditGroup editGroup)
Replaces the given node from its parent's list property in the rewriter.