For nodes in the original that are being replaced or deleted, this rewriter computes the adjusted source ranges by calling getTargetSourceRangeComputer().computeSourceRange(node)
.
Calling this methods does not discard the modifications on record. Subsequence modifications are added to the ones already on record. If this method is called again later, the resulting text edit object will accurately reflect the net cumulative affect of all those changes.
@param document original document containing source code @param options the table of formatter options(key type:String
; value type: String
); or null
to use the standard global options {@link JavaCore#getOptions() JavaCore.getOptions()}
@return text edit object describing the changes to thedocument corresponding to the changes recorded by this rewriter
@throws IllegalArgumentException An IllegalArgumentException
is thrown if the document passed does not correspond to the AST that is rewritten.
For nodes in the original that are being replaced or deleted, this rewriter computes the adjusted source ranges by calling {@link TargetSourceRangeComputer#computeSourceRange(ASTNode) getExtendedSourceRangeComputer().computeSourceRange(node)}.
Calling this methods does not discard the modifications on record. Subsequence modifications are added to the ones already on record. If this method is called again later, the resulting text edit object will accurately reflect the net cumulative effect of all those changes.
@param document original document containing source code @param options the table of formatter options(key type:String
; value type: String
); or null
to use the standard global options {@link JavaCore#getOptions() JavaCore.getOptions()}
@return text edit object describing the changes to thedocument corresponding to the changes recorded by this rewriter
@throws IllegalArgumentException An IllegalArgumentException
is thrown if the document passed does not correspond to the AST that is rewritten.
For nodes in the original that are being replaced or deleted, this rewriter computes the adjusted source ranges by calling getTargetSourceRangeComputer().computeSourceRange(node)
.
Calling this methods does not discard the modifications on record. Subsequence modifications are added to the ones already on record. If this method is called again later, the resulting text edit object will accurately reflect the net cumulative affect of all those changes.
@param document original document containing source code @param options the table of formatter options (key type:String
; value type: String
); or null
to use the standard global options {@link JavaCore#getOptions() JavaCore.getOptions()}
@return text edit object describing the changes to the documentcorresponding to the changes recorded by this rewriter
@throws IllegalArgumentException An IllegalArgumentException
is thrown if the document passed does not correspond to the AST that is rewritten.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|