C# 클래스 Antlr4.Runtime.Tree.Pattern.ParseTreePattern

A pattern like <ID> = <expr>; converted to a Antlr4.Runtime.Tree.IParseTree by ParseTreePatternMatcher.Compile(string, int) .
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

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