System.Xml.Schema.ActiveAxis.ActiveAxis C# (CSharp) Method

ActiveAxis() private method

private ActiveAxis ( Asttree axisTree ) : System.Xml.XPath
axisTree Asttree
return System.Xml.XPath
        internal ActiveAxis (Asttree axisTree) {
            this.axisTree = axisTree;                                               // only a pointer.  do i need it?
            this.currentDepth = -1;                                                 // context depth is 0 -- enforce moveToChild for the context node
                                                                                    // otherwise can't deal with "." node
            this.axisStack = new ArrayList(axisTree.SubtreeArray.Count);            // defined length
            // new one stack element for each one
            foreach (ForwardAxis faxis in axisTree.SubtreeArray) {
                AxisStack stack = new AxisStack (faxis, this);
                axisStack.Add (stack);
            }
            this.isActive = true;
        }