C# Класс Antlr4.Runtime.Tree.Trees

A set of utility routines useful for all kinds of ANTLR trees.
Показать файл Открыть проект

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

Метод Описание
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