Class RegExReplaceInfo

java.lang.Object
org.fife.ui.rtextarea.RegExReplaceInfo

class RegExReplaceInfo extends Object
Information on how to implement a regular expression "replace" operation.
Version:
1.0
  • Field Details

    • matchedText

      private String matchedText
    • startIndex

      private int startIndex
    • endIndex

      private int endIndex
    • replacement

      private String replacement
  • Constructor Details

    • RegExReplaceInfo

      RegExReplaceInfo(String matchedText, int start, int end, String replacement)
      Constructor.
      Parameters:
      matchedText - The text that matched the regular expression.
      start - The start index of the matched text in the CharSequence searched.
      end - The end index of the matched text in the CharSequence searched.
      replacement - The text to replace the matched text with. This string has any matched groups and character escapes replaced.
  • Method Details

    • getEndIndex

      public int getEndIndex()
      Returns the end index of the matched text.
      Returns:
      The end index of the matched text in the document searched.
      See Also:
    • getMatchedText

      public String getMatchedText()
      Returns the text that matched the regular expression.
      Returns:
      The matched text.
    • getReplacement

      public String getReplacement()
      Returns the string to replace the matched text with.
      Returns:
      The string to replace the matched text with.
    • getStartIndex

      public int getStartIndex()
      Returns the start index of the matched text.
      Returns:
      The start index of the matched text in the document searched.
      See Also: