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.1
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  IAction
The rule to invoke
subgraph  IGraph
The subgraph to invoke the rule in, if not null
arguments  Object
The input arguments
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  ListFilterCall
The name of the filters to apply to the matches before rewriting, in the order of filtering.
fireDebugEvents  Boolean
Specifies whether debug events (mostly action events) are to be fired.
numMatches  Int32
The amount of matches found (output returned).

Return Value

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