Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2004, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2004, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 162-168
Link Here
|
162 |
* <p> |
162 |
* <p> |
163 |
* For nodes in the original that are being replaced or deleted, |
163 |
* For nodes in the original that are being replaced or deleted, |
164 |
* this rewriter computes the adjusted source ranges |
164 |
* this rewriter computes the adjusted source ranges |
165 |
* by calling <code>getTargetSourceRangeComputer().computeSourceRange(node)</code>. |
165 |
* by calling {@link TargetSourceRangeComputer#computeSourceRange(ASTNode) getExtendedSourceRangeComputer().computeSourceRange(node)}. |
166 |
* </p> |
166 |
* </p> |
167 |
* <p> |
167 |
* <p> |
168 |
* Calling this methods does not discard the modifications |
168 |
* Calling this methods does not discard the modifications |
Lines 217-223
Link Here
|
217 |
* <p> |
217 |
* <p> |
218 |
* For nodes in the original that are being replaced or deleted, |
218 |
* For nodes in the original that are being replaced or deleted, |
219 |
* this rewriter computes the adjusted source ranges |
219 |
* this rewriter computes the adjusted source ranges |
220 |
* by calling <code>getTargetSourceRangeComputer().computeSourceRange(node)</code>. |
220 |
* by calling {@link TargetSourceRangeComputer#computeSourceRange(ASTNode) getExtendedSourceRangeComputer().computeSourceRange(node)}. |
221 |
* </p> |
221 |
* </p> |
222 |
* <p> |
222 |
* <p> |
223 |
* Calling this methods does not discard the modifications |
223 |
* Calling this methods does not discard the modifications |
Lines 663-668
Link Here
|
663 |
* |
663 |
* |
664 |
* @return an extended source range computer |
664 |
* @return an extended source range computer |
665 |
* @since 3.1 |
665 |
* @since 3.1 |
|
|
666 |
* @see #setTargetSourceRangeComputer(TargetSourceRangeComputer) |
666 |
*/ |
667 |
*/ |
667 |
public final TargetSourceRangeComputer getExtendedSourceRangeComputer() { |
668 |
public final TargetSourceRangeComputer getExtendedSourceRangeComputer() { |
668 |
if (this.targetSourceRangeComputer == null) { |
669 |
if (this.targetSourceRangeComputer == null) { |
Lines 680-688
Link Here
|
680 |
* or <code>null</code> to restore the default value of |
681 |
* or <code>null</code> to restore the default value of |
681 |
* <code>new TargetSourceRangeComputer()</code> |
682 |
* <code>new TargetSourceRangeComputer()</code> |
682 |
* @since 3.1 |
683 |
* @since 3.1 |
|
|
684 |
* @see #getExtendedSourceRangeComputer() |
683 |
*/ |
685 |
*/ |
684 |
public final void setTargetSourceRangeComputer(TargetSourceRangeComputer computer) { |
686 |
public final void setTargetSourceRangeComputer(TargetSourceRangeComputer computer) { |
685 |
// if computer==null, rely on lazy init code in getTargetSourceRangeComputer() |
687 |
// if computer==null, rely on lazy init code in getExtendedSourceRangeComputer() |
686 |
this.targetSourceRangeComputer = computer; |
688 |
this.targetSourceRangeComputer = computer; |
687 |
} |
689 |
} |
688 |
|
690 |
|