Click or drag to resize

IGraphProcessingEnvironmentApplyRewrite Method

Apply a rewrite rule.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
List<Object[]> ApplyRewrite(
	IAction action,
	IGraph subgraph,
	Object[] arguments,
	int which,
	int localMaxMatches,
	bool special,
	bool test,
	List<FilterCall> filters,
	bool fireDebugEvents,
	out int numMatches
)

Parameters

action
Type: de.unika.ipd.grGen.libGrIAction
The rule to invoke
subgraph
Type: de.unika.ipd.grGen.libGrIGraph
The subgraph to invoke the rule in, if not null
arguments
Type: SystemObject
The input arguments
which
Type: SystemInt32
The index of the match to be rewritten or -1 to rewrite all matches
localMaxMatches
Type: SystemInt32
Specifies the maximum number of matches to be found (if less or equal 0 the number of matches depends on MaxMatches)
special
Type: SystemBoolean
Specifies whether the %-modifier has been used for this rule, which may have a special meaning for the application
test
Type: SystemBoolean
If true, no rewrite step is performed.
filters
Type: System.Collections.GenericListFilterCall
The name of the filters to apply to the matches before rewriting, in the order of filtering.
fireDebugEvents
Type: SystemBoolean
Specifies whether debug events (mostly action events) are to be fired.
numMatches
Type: SystemInt32
The amount of matches found (output returned).

Return Value

Type: ListObject
The list of outputs (for each match a list element, a list element is an array with the returned values).
See Also