Package org.fife.ui.rtextarea
Class RegExReplaceInfo
java.lang.Object
org.fife.ui.rtextarea.RegExReplaceInfo
Information on how to implement a regular expression "replace" operation.
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegExReplaceInfo
(String matchedText, int start, int end, String replacement) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the end index of the matched text.Returns the text that matched the regular expression.Returns the string to replace the matched text with.int
Returns the start index of the matched text.
-
Field Details
-
matchedText
-
startIndex
private int startIndex -
endIndex
private int endIndex -
replacement
-
-
Constructor Details
-
RegExReplaceInfo
Constructor.- Parameters:
matchedText
- The text that matched the regular expression.start
- The start index of the matched text in theCharSequence
searched.end
- The end index of the matched text in theCharSequence
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
Returns the text that matched the regular expression.- Returns:
- The matched text.
-
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:
-