Evaluate() public method

Return a list of all nodes starting at t as root that satisfy the path. The root / is relative to the node passed to Evaluate(Antlr4.Runtime.Tree.IParseTree) .
public Evaluate ( IParseTree t ) : ICollection
t IParseTree
return ICollection
コード例 #1
0
 public static ICollection <IParseTree> FindAll(IParseTree tree, string xpath, Parser parser)
 {
     Antlr4.Runtime.Tree.Xpath.XPath p = new Antlr4.Runtime.Tree.Xpath.XPath(parser, xpath);
     return(p.Evaluate(tree));
 }
コード例 #2
0
ファイル: XPath.cs プロジェクト: rharrisxtheta/antlr4cs
 public static ICollection<IParseTree> FindAll(IParseTree tree, string xpath, Parser parser)
 {
     Antlr4.Runtime.Tree.Xpath.XPath p = new Antlr4.Runtime.Tree.Xpath.XPath(parser, xpath);
     return p.Evaluate(tree);
 }