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

Represents the result of matching a Antlr4.Runtime.Tree.IParseTree against a tree pattern.
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Get IParseTree
GetAll IList

공개 메소드들

메소드 설명
ParseTreeMatch ( IParseTree tree, ParseTreePattern pattern, IParseTree>.MultiMap labels, IParseTree mismatchedNode ) : System

Constructs a new instance of ParseTreeMatch from the specified parse tree and pattern.

ToString ( ) : string

비공개 메소드들

메소드 설명
Get ( string label ) : IParseTree
GetAll ( string label ) : IList

메소드 상세

ParseTreeMatch() 공개 메소드

Constructs a new instance of ParseTreeMatch from the specified parse tree and pattern.
/// IllegalArgumentException /// if /// /// is /// /// /// IllegalArgumentException /// if /// /// is /// /// /// IllegalArgumentException /// if /// /// is /// ///
public ParseTreeMatch ( IParseTree tree, ParseTreePattern pattern, IParseTree>.MultiMap labels, IParseTree mismatchedNode ) : System
tree IParseTree The parse tree to match against the pattern.
pattern ParseTreePattern The parse tree pattern.
labels IParseTree>.MultiMap /// A mapping from label names to collections of /// /// objects located by the tree pattern matching process. ///
mismatchedNode IParseTree /// The first node which failed to match the tree /// pattern during the matching process. ///
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string