Table of Contents

Class Pattern

Namespace
ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching
Assembly
ICSharpCode.Decompiler.dll

Base class for all patterns.

public abstract class Pattern : INode
Inheritance
Pattern
Implements
Derived
Inherited Members
Extension Methods

Constructors

Pattern()

protected Pattern()

Fields

AnyString

Gets the string that matches any string.

public static readonly string AnyString

Field Value

string

Methods

DoMatch(INode, Match)

public abstract bool DoMatch(INode other, Match match)

Parameters

other INode
match Match

Returns

bool

DoMatchCollection(Role, INode, INode, Match)

public static bool DoMatchCollection(Role role, INode firstPatternChild, INode firstOtherChild, Match match)

Parameters

role Role
firstPatternChild INode
firstOtherChild INode
match Match

Returns

bool

DoMatchCollection(Role, INode, Match, BacktrackingInfo)

public virtual bool DoMatchCollection(Role role, INode pos, Match match, BacktrackingInfo backtrackingInfo)

Parameters

role Role
pos INode
match Match
backtrackingInfo BacktrackingInfo

Returns

bool

MatchString(string, string)

public static bool MatchString(string pattern, string text)

Parameters

pattern string
text string

Returns

bool