All Known Implementing Classes:
DefaultTextEdit

public interface TextEdit
A TextEdit contains the information of a change that can be made to the JPQL query after performing a refactoring operation. TextRange objects are stored in a RefactoringDelta.
Since:
2.4
Version:
2.4
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the length of the text to replace with the new value.
    Returns the new value that should replace the old value.
    int
    Returns the location of the old value within the text.
    Returns the value that was found within the text that should be replaced by the new value.
  • Method Details

    • getLength

      int getLength()
      Returns the length of the text to replace with the new value.
      Returns:
      The old value's length
    • getNewValue

      String getNewValue()
      Returns the new value that should replace the old value.
      Returns:
      The value to replace the old value
    • getOffset

      int getOffset()
      Returns the location of the old value within the text.
      Returns:
      The location of the old value within the text
    • getOldValue

      String getOldValue()
      Returns the value that was found within the text that should be replaced by the new value.
      Returns:
      The value to replace