|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.griffon.runtime.search.RegExReplaceInfo
class RegExReplaceInfo extends Object
Information on how to implement a regular expression "replace" operation.
| Field Summary | |
|---|---|
private int |
endIndex
|
private String |
matchedText
|
private String |
replacement
|
private int |
startIndex
|
| Constructor Summary | |
RegExReplaceInfo(String matchedText, int start, int end, String replacement)
Constructor. |
|
| Method Summary | |
|---|---|
int
|
getEndIndex()
Returns the end index of the matched text. |
String
|
getMatchedText()
Returns the text that matched the regular expression. |
String
|
getReplacement()
Returns the string to replaced the matched text with. |
int
|
getStartIndex()
Returns the start index of the matched text. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private int endIndex
private String matchedText
private String replacement
private int startIndex
| Constructor Detail |
|---|
public RegExReplaceInfo(String matchedText, int start, int end, String replacement)
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 Detail |
|---|
public int getEndIndex()
public String getMatchedText()
public String getReplacement()
public int getStartIndex()
Groovy Documentation