RefactoringDelta which contains the TextEdit that
were creating during the refactoring of a JPQL query.
| Modifier and Type | Field and Description |
|---|---|
| private CharSequence | jpqlQuery
The JPQL query or JPQL fragment that will be traversed when refactoring operations will be executed. |
| private List |
| Access | Constructor and Description |
|---|---|
| public | DefaultRefactoringDelta(CharSequence
The JPQL query or JPQL fragment that will be traversed when refactoring
operations will be executed jpqlQuery)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addTextEdits(Iterable<? extends TextEdit>
The collection of textEdits)TextEdit objects to addAdds the given collection of |
| public String | applyChanges()
Implements org. |
| protected int | Returns: The insertion position for the givenTextEditThe textEdit)TextEdit for which its insertion position will be calculatedCalculates the insertion position for the given |
| public boolean | hasTextEdits()
Implements org. TextEdit was added.
|
| protected void | initialize(CharSequence
The JPQL query or JPQL fragment that will be traversed when refactoring
operations will be executed jpqlQuery)Initializes this |
| public int | size()
Implements org. TextEdit objects that have been added.
|
| public ListIterable | textEdits()
Implements org. TextEdit objects that have been added during one or several
refactoring operations.
|
| public String |
| jpqlQuery | back to summary |
|---|---|
| private CharSequence jpqlQuery The JPQL query or JPQL fragment that will be traversed when refactoring operations will be executed. | |
| textEdits | back to summary |
|---|---|
| private List<TextEdit> textEdits The list of | |
| DefaultRefactoringDelta | back to summary |
|---|---|
| public DefaultRefactoringDelta(CharSequence jpqlQuery) Creates a new
| |
| addTextEdit | back to summary |
|---|---|
| public void addTextEdit(TextEdit textEdit) Adds the given
| |
| addTextEdits | back to summary |
|---|---|
| public void addTextEdits(Iterable<? extends TextEdit> textEdits) Adds the given collection of | |
| applyChanges | back to summary |
|---|---|
| public String applyChanges() Implements org. Doc from org. Applies the changes to the JPQL query and returns the refactoring operations. The list of
| |
| calculateInsertionPosition | back to summary |
|---|---|
| protected int calculateInsertionPosition(TextEdit textEdit) Calculates the insertion position for the given | |
| hasTextEdits | back to summary |
|---|---|
| public boolean hasTextEdits() Implements org. Doc from org. Determines whether at least one | |
| initialize | back to summary |
|---|---|
| protected void initialize(CharSequence jpqlQuery) Initializes this
| |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Returns the number of | |
| textEdits | back to summary |
|---|---|
| public ListIterable Implements org. Doc from org. Returns the collection of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |