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

Example usage for Java org.eclipse.jdt.core.dom.rewrite ASTRewrite 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 ASTRewrite.

The text is from its open source code.

Constructor

ASTRewrite(AST ast)
Internal constructor.

Method

ASTRewritecreate(AST ast)
Creates a new instance for describing manipulations of the given AST.
ASTNodecreateCopyTarget(ASTNode node)
Creates and returns a placeholder node for a true copy of the given node.
ASTNodecreateMoveTarget(ASTNode node)
Creates and returns a placeholder node for the new locations of the given node.
ASTNodecreateStringPlaceholder(String code, int nodeType)
Creates and returns a placeholder node for a source string that is to be inserted into the output document at the position corresponding to the placeholder.
Objectget(ASTNode node, StructuralPropertyDescriptor property)
Returns the value of the given property as managed by this rewriter.
ASTgetAST()
Returns the AST the rewrite was set up on.
ListRewritegetListRewrite(ASTNode node, ChildListPropertyDescriptor property)
Creates and returns a new rewriter for describing modifications to the given list property of the given node.
voidremove(ASTNode node, TextEditGroup editGroup)
Removes the given node from its parent in this rewriter.
voidreplace(ASTNode node, ASTNode replacement, TextEditGroup editGroup)
Replaces the given node in this rewriter.
TextEditrewriteAST(IDocument document, Map options)
Converts all modifications recorded by this rewriter into an object representing the corresponding text edits to the given document containing the original source code.
TextEditrewriteAST()
Converts all modifications recorded by this rewriter into an object representing the the corresponding text edits to the source of a ITypeRoot from which the AST was created from.
voidset(ASTNode node, StructuralPropertyDescriptor property, Object value, TextEditGroup editGroup)
Sets the given property of the given node.
voidsetTargetSourceRangeComputer(TargetSourceRangeComputer computer)
Sets a custom target source range computer for this AST rewriter.
StringtoString()
Returns a string suitable for debugging purposes (only).
ITrackedNodePositiontrack(ASTNode node)
Returns an object that tracks the source range of the given node across the rewrite to its AST.