Beispiel #1
0
 /// <summary>Searches for a node within the current sub-tree with the specified path.</summary>
 /// <param name="path">The full path of the expression node.</param>
 public ExpressionNode SearchForNode(string path)
 {
     return(ExpressionNode.SearchForNode(this, path));
 }
Beispiel #2
0
        /// <summary>Searches an expression tree for a node with the specified path.</summary>
        /// <param name="target">The root node to search within.</param>
        /// <param name="path">The full path to the expression node.</param>
        public static ExpressionNode SearchForNode(ExpressionNode target, string path)
        {
            ExpressionNode match = SearchForNode(target, path, false, false);

            return(match ?? target); // return the match, or the supplied target if no match
        }
Beispiel #3
0
 /// <summary>Adds a sub-node below the current node.</summary>
 /// <param name="node">The node to add.</param>
 public void Add(ExpressionNode node)
 {
     this.Nodes.Add(node);
 }