Ejemplo n.º 1
0
 static XPathAxis()
 {
     child            = new XPathAxis(XPathAxisType.Child);
     descendant       = new XPathAxis(XPathAxisType.Descendant);
     attribute        = new XPathAxis(XPathAxisType.Attribute);
     self             = new XPathAxis(XPathAxisType.Self);
     descendantOrSelf = new XPathAxis(XPathAxisType.DescendantOrSelf);
     followingSibling = new XPathAxis(XPathAxisType.FollowingSibling);
     following        = new XPathAxis(XPathAxisType.Following);
     parent           = new XPathAxis(XPathAxisType.Parent);
     ancestor         = new XPathAxis(XPathAxisType.Ancestor);
     precedingSibling = new XPathAxis(XPathAxisType.PrecedingSibling);
     preceding        = new XPathAxis(XPathAxisType.Preceding);
     ancestorOrSelf   = new XPathAxis(XPathAxisType.AncestorOrSelf);
     namespaceAxis    = new XPathAxis(XPathAxisType.Namespace);
 }
Ejemplo n.º 2
0
		static XPathAxis ()
		{
			child = new XPathAxis (XPathAxisType.Child);
			descendant = new XPathAxis (XPathAxisType.Descendant);
			attribute = new XPathAxis (XPathAxisType.Attribute);
			self = new XPathAxis (XPathAxisType.Self);
			descendantOrSelf = new XPathAxis (XPathAxisType.DescendantOrSelf);
			followingSibling = new XPathAxis (XPathAxisType.FollowingSibling);
			following = new XPathAxis (XPathAxisType.Following);
			parent = new XPathAxis (XPathAxisType.Parent);
			ancestor = new XPathAxis (XPathAxisType.Ancestor);
			precedingSibling = new XPathAxis (XPathAxisType.PrecedingSibling);
			preceding = new XPathAxis (XPathAxisType.Preceding);
			ancestorOrSelf = new XPathAxis (XPathAxisType.AncestorOrSelf);
			namespaceAxis = new XPathAxis (XPathAxisType.Namespace);
		}
Ejemplo n.º 3
0
		public AxisStepExpr (XPathAxis axis, XPath2NodeTest test)
		{
			this.axis = axis;
			if (test == null)
				nameTest = XmlQualifiedName.Empty;
			else {
				if (test.NameTest != null)
					this.nameTest = test.NameTest;
				else
					this.kindTest = test.KindTest;
			}
		}