 | IActionExecutionEnvironmentReplace Method |
Executes the modifications of the according rule to the given match/matches.
Fires OnRewritingNextMatch events before each rewrite except for the first one.
Namespace:
de.unika.ipd.grGen.libGr
Assembly:
libGr (in libGr.dll) Version: GrGen.NET 7.2
SyntaxList<Object[]> Replace(
IMatches matches,
int which,
bool special,
bool fireDebugEvents
)
Parameters
- matches
- Type: de.unika.ipd.grGen.libGrIMatches
The matches object returned by a previous matcher call. - which
- Type: SystemInt32
The index of the match in the matches object to be applied,
or -1, if all matches are to be applied. - special
- Type: SystemBoolean
Whether the special flag was applied to the rule call. - fireDebugEvents
- Type: SystemBoolean
Specifies whether debug events (mostly action events) are to be fired.
Return Value
Type:
ListObjectA list with the return values of each of the rewrites applied.
Each element is a possibly empty array of objects that were returned by their rewrite.
See Also