C# Class Antlr4.Runtime.Tree.Pattern.ParseTreeMatch

Represents the result of matching a Antlr4.Runtime.Tree.IParseTree against a tree pattern.
Datei anzeigen Open project: antlr/antlr4 Class Usage Examples

Private Properties

Property Type Description
Get IParseTree
GetAll IList

Public Methods

Method Description
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

Private Methods

Method Description
Get ( string label ) : IParseTree
GetAll ( string label ) : IList

Method Details

ParseTreeMatch() public method

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. ///
return System

ToString() public method

public ToString ( ) : string
return string