C# Класс Antlr4.Runtime.Tree.Pattern.ParseTreePattern

A pattern like <ID> = <expr>; converted to a Antlr4.Runtime.Tree.IParseTree by ParseTreePatternMatcher.Compile(string, int) .
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FindAll IList
Match ParseTreeMatch

Открытые методы

Метод Описание
Matches ( IParseTree tree ) : bool

Determine whether or not a parse tree matches this tree pattern.

Determine whether or not a parse tree matches this tree pattern.

ParseTreePattern ( ParseTreePatternMatcher matcher, string pattern, int patternRuleIndex, IParseTree patternTree ) : System.Collections.Generic

Construct a new instance of the ParseTreePattern class.

Приватные методы

Метод Описание
FindAll ( IParseTree tree, string xpath ) : IList
Match ( IParseTree tree ) : ParseTreeMatch

Описание методов

Matches() публичный Метод

Determine whether or not a parse tree matches this tree pattern.
Determine whether or not a parse tree matches this tree pattern.
public Matches ( IParseTree tree ) : bool
tree IParseTree The parse tree to match against this tree pattern.
Результат bool

ParseTreePattern() публичный Метод

Construct a new instance of the ParseTreePattern class.
public ParseTreePattern ( ParseTreePatternMatcher matcher, string pattern, int patternRuleIndex, IParseTree patternTree ) : System.Collections.Generic
matcher ParseTreePatternMatcher /// The /// /// which created this /// tree pattern. ///
pattern string The tree pattern in concrete syntax form.
patternRuleIndex int /// The parser rule which serves as the root of the /// tree pattern. ///
patternTree IParseTree /// The tree pattern in /// /// form. ///
Результат System.Collections.Generic