Click or drag to resize

IMatches Interface

An object representing a (possibly empty) set of matches in a graph before the rewrite has been applied. If it is a match of an action, it is returned by IAction.Match() and given to the OnMatched event. Otherwise it's the match of an iterated-pattern, and the producing action is null.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 5.0
Syntax
C#
public interface IMatches : IEnumerable<IMatch>, 
	IEnumerable

The IMatches type exposes the following members.

Properties
  NameDescription
Public propertyCount
The number of matches found by Producer
Public propertyFirst
Returns the first match (null if no match exists).
Public propertyProducer
The action object used to generate this IMatches object
Top
Methods
  NameDescription
Public methodClone
Clone the matches
Public methodClone(IDictionaryIMatch, IMatch)
Clones the matches.
Public methodFilter_keepFirst
For filtering with the auto-supplied filter keepFirst
Public methodFilter_keepFirstFraction
For filtering with the auto-supplied filter keepFirstFraction
Public methodFilter_keepLast
For filtering with the auto-supplied filter keepLast
Public methodFilter_keepLastFraction
For filtering with the auto-supplied filter keepLastFraction
Public methodFilter_removeFirst
For filtering with the auto-supplied filter removeFirst
Public methodFilter_removeFirstFraction
For filtering with the auto-supplied filter removeFirstFraction
Public methodFilter_removeLast
For filtering with the auto-supplied filter removeLast
Public methodFilter_removeLastFraction
For filtering with the auto-supplied filter removeLastFraction
Public methodGetMatch
Returns the match with the given index. Invalid indices cause an exception. This may be slow. If you want to iterate over the elements the Matches IEnumerable should be used.
Public methodRemoveMatch
Removes the match at the given index and returns it.
Public methodToList
Returns the content of the current matches list in form of an array which can be efficiently indexed and reordered. The array is destroyed when this method is called again, the content is destroyed when the rule is matched again (there is only one array existing).
Top
See Also