ReplacingArgs
Overview
ReplacingArgs is a class in Aspose.Words FOSS for Java.
Provides data for a custom replace operation.
Edition status of its 14 listed members (a property and its accessor methods are listed separately, overloads once): 14 not yet exercised by a verified example.
This class declares 8 methods for ReplacingArgs objects in Java programs.
Available methods include: getGroupIndex, getMatch, getMatchEndNode, getMatchNode, getMatchOffset, getReplacement, setGroupIndex, setReplacement.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: groupIndex, match, matchEndNode, matchNode, matchOffset, replacement.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
match | java.util.regex.Matcher | Read | Gets the match. |
matchNode | Node | Read | Gets the node that contains the beginning of the match. |
matchEndNode | Node | Read | Gets the node that contains the end of the match. |
matchOffset | int | Read | Gets the zero-based starting position of the match from the start of the node that contains the beginning of the match. |
replacement | String | Read/Write | Gets or sets the replacement string. |
groupIndex | int | Read/Write | Identifies, by index, a captured group in the Match that is to be replaced with the Replacement string. |
Methods
| Signature | Description |
|---|---|
getMatch() → java.util.regex.Matcher | Returns the match. |
getMatchNode() → Node | Gets the node that contains the beginning of the match. |
getMatchEndNode() → Node | Gets the node that contains the end of the match. |
getMatchOffset() → int | Gets the zero-based starting position of the match from the start of the node that contains the beginning of the match. |
getReplacement() → String | Gets or sets the replacement string. |
setReplacement(value: String) | Sets the replacement value. |
getGroupIndex() → int | Identifies, by index, a captured group in the Match that is to be replaced with the Replacement string. |
setGroupIndex(value: int) | Sets the group index value. |