public class TextReplacement extends Object
Represents a textual replacement information.
Learn more
Constructor and Description |
---|
TextReplacement(int index,
String original,
String replacement)
Initializes a new instance of TextReplacement class.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Gets an index of the matched text within source string.
|
String |
getOriginalText()
Gets the original matched string.
|
String |
getReplacement()
Gets the string, replacing OriginalText.
|
String |
toString()
Provides text replacement description and its position.
|
public final int getIndex()
Gets an index of the matched text within source string.
public final String getOriginalText()
Gets the original matched string.
public final String getReplacement()
Gets the string, replacing OriginalText.