Interface TextEdit

  • 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.
    Version:
    2.4
    See Also:
    BasicRefactoringTool
    Author:
    Pascal Filion
    Since:
    2.4
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getLength()
      Returns the length of the text to replace with the new value.
      java.lang.String getNewValue()
      Returns the new value that should replace the old value.
      int getOffset()
      Returns the location of the old value within the text.
      java.lang.String getOldValue()
      Returns the value that was found within the text that should be replaced by the new value.
    • Method Detail

      • getLength

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

        java.lang.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

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