GrGen.NET v4.4 API: the libGr class library (the type exact interface gets generated)
ApplyRewrite Method (paramBindings, which, localMaxMatches, special, test, filters)
Namespacesde.unika.ipd.grGen.libGrIGraphProcessingEnvironmentApplyRewrite(RuleInvocationParameterBindings, Int32, Int32, Boolean, Boolean, List<(Of <<'(FilterCall>)>>))
Apply a rewrite rule (first computing the parameters with sequence expressions, last assigning result variables).
Declaration Syntax
C#
int ApplyRewrite(
	RuleInvocationParameterBindings paramBindings,
	int which,
	int localMaxMatches,
	bool special,
	bool test,
	List<FilterCall> filters
)
Parameters
paramBindings (RuleInvocationParameterBindings)
The parameter bindings of the rule invocation
which (Int32)
The index of the match to be rewritten or -1 to rewrite all matches
localMaxMatches (Int32)
Specifies the maximum number of matches to be found (if less or equal 0 the number of matches depends on MaxMatches)
special (Boolean)
Specifies whether the %-modifier has been used for this rule, which may have a special meaning for the application
test (Boolean)
If true, no rewrite step is performed.
filters (List<(Of <(<'FilterCall>)>)>)
The name of the filters to apply to the matches before rewriting, in the order of filtering.
Return Value
The number of matches found

Assembly: libGr (Module: libGr) Version: 4.4.0.0 (4.4.0.0)