C# 클래스 Antlr4.Runtime.Tree.Trees

A set of utility routines useful for all kinds of ANTLR trees.
파일 보기 프로젝트 열기: antlr/antlr4

공개 메소드들

메소드 설명
Descendants ( IParseTree t ) : IList
FindAllNodes ( IParseTree t, int index, bool findTokens ) : IList
FindAllRuleNodes ( IParseTree t, int ruleIndex ) : ICollection
FindAllTokenNodes ( IParseTree t, int ttype ) : ICollection
GetChildren ( ITree t ) : IList

Return ordered list of all children of this node

GetNodeText ( ITree t, IList ruleNames ) : string
GetNodeText ( ITree t, Parser recog ) : string
ToStringTree ( ITree t ) : string

Print out a whole tree in LISP form.

Print out a whole tree in LISP form. GetNodeText(ITree, Antlr4.Runtime.Parser) is used on the node payloads to get the text for the nodes. Detect parse trees and extract data appropriately.

ToStringTree ( ITree t, IList ruleNames ) : string

Print out a whole tree in LISP form.

Print out a whole tree in LISP form. GetNodeText(ITree, Antlr4.Runtime.Parser) is used on the node payloads to get the text for the nodes. Detect parse trees and extract data appropriately.

ToStringTree ( ITree t, Parser recog ) : string

Print out a whole tree in LISP form.

Print out a whole tree in LISP form. GetNodeText(ITree, Antlr4.Runtime.Parser) is used on the node payloads to get the text for the nodes. Detect parse trees and extract data appropriately.

비공개 메소드들

메소드 설명
GetAncestors ( ITree t ) : IList
Trees ( ) : System.Collections.Generic
_findAllNodes ( IParseTree t, int index, bool findTokens, IList nodes ) : void

메소드 상세

Descendants() 공개 정적인 메소드

public static Descendants ( IParseTree t ) : IList
t IParseTree
리턴 IList

FindAllNodes() 공개 정적인 메소드

public static FindAllNodes ( IParseTree t, int index, bool findTokens ) : IList
t IParseTree
index int
findTokens bool
리턴 IList

FindAllRuleNodes() 공개 정적인 메소드

public static FindAllRuleNodes ( IParseTree t, int ruleIndex ) : ICollection
t IParseTree
ruleIndex int
리턴 ICollection

FindAllTokenNodes() 공개 정적인 메소드

public static FindAllTokenNodes ( IParseTree t, int ttype ) : ICollection
t IParseTree
ttype int
리턴 ICollection

GetChildren() 공개 정적인 메소드

Return ordered list of all children of this node
public static GetChildren ( ITree t ) : IList
t ITree
리턴 IList

GetNodeText() 공개 정적인 메소드

public static GetNodeText ( ITree t, IList ruleNames ) : string
t ITree
ruleNames IList
리턴 string

GetNodeText() 공개 정적인 메소드

public static GetNodeText ( ITree t, Parser recog ) : string
t ITree
recog Parser
리턴 string

ToStringTree() 공개 정적인 메소드

Print out a whole tree in LISP form.
Print out a whole tree in LISP form. GetNodeText(ITree, Antlr4.Runtime.Parser) is used on the node payloads to get the text for the nodes. Detect parse trees and extract data appropriately.
public static ToStringTree ( ITree t ) : string
t ITree
리턴 string

ToStringTree() 공개 정적인 메소드

Print out a whole tree in LISP form.
Print out a whole tree in LISP form. GetNodeText(ITree, Antlr4.Runtime.Parser) is used on the node payloads to get the text for the nodes. Detect parse trees and extract data appropriately.
public static ToStringTree ( ITree t, IList ruleNames ) : string
t ITree
ruleNames IList
리턴 string

ToStringTree() 공개 정적인 메소드

Print out a whole tree in LISP form.
Print out a whole tree in LISP form. GetNodeText(ITree, Antlr4.Runtime.Parser) is used on the node payloads to get the text for the nodes. Detect parse trees and extract data appropriately.
public static ToStringTree ( ITree t, Parser recog ) : string
t ITree
recog Parser
리턴 string