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 4.5
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 methodFilterKeepFirst
For filtering with the auto-supplied filter keepFirst
Public methodFilterKeepFirstFraction
For filtering with the auto-supplied filter keepFirstFraction
Public methodFilterKeepLast
For filtering with the auto-supplied filter keepLast
Public methodFilterKeepLastFraction
For filtering with the auto-supplied filter keepLastFraction
Public methodFilterRemoveFirst
For filtering with the auto-supplied filter removeFirst
Public methodFilterRemoveFirstFraction
For filtering with the auto-supplied filter removeFirstFraction
Public methodFilterRemoveLast
For filtering with the auto-supplied filter removeLast
Public methodFilterRemoveLastFraction
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.
Top
See Also