1 //------------------------------------------------------------------------------
2 // <copyright file="XPathSelfQuery.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
8 namespace MS.Internal.Xml.XPath {
11 using System.Xml.XPath;
12 using System.Diagnostics;
14 internal sealed class XPathSelfQuery : BaseAxisQuery {
15 public XPathSelfQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {}
16 private XPathSelfQuery(XPathSelfQuery other) : base(other) { }
18 public override XPathNavigator Advance() {
19 while ((currentNode = qyInput.Advance()) != null) {
20 if (matches(currentNode)) {
28 public override XPathNodeIterator Clone() { return new XPathSelfQuery(this); }