示例#1
0
        internal XPathNodeIterator Select(XPathExpression expr, NSResolver ctx)
        {
            CompiledExpression cexpr = (CompiledExpression)expr;

            if (ctx == null)
            {
                ctx = cexpr.NamespaceManager;
            }

            BaseIterator iter = new NullIterator(this, ctx);

            return(cexpr.EvaluateNodeSet(iter));
        }
示例#2
0
        internal string EvaluateString(XPathExpression expr, XPathNodeIterator context, NSResolver ctx)
        {
            CompiledExpression cexpr = (CompiledExpression)expr;

            if (ctx == null)
            {
                ctx = cexpr.NamespaceManager;
            }

            if (context == null)
            {
                context = new NullIterator(this, cexpr.NamespaceManager);
            }
            BaseIterator iterContext = ToBaseIterator(context, ctx);

            return(cexpr.EvaluateString(iterContext));
        }
示例#3
0
        internal bool EvaluateBoolean(XPathExpression expr, XPathNodeIterator context, NSResolver ctx)
        {
            CompiledExpression cexpr = (CompiledExpression)expr;

            if (ctx == null)
            {
                ctx = cexpr.NamespaceManager;
            }

            if (context == null)
            {
                context = new NullIterator(this, cexpr.NamespaceManager);
            }
            BaseIterator iterContext = (BaseIterator)context;

            iterContext.NamespaceManager = ctx;
            return(cexpr.EvaluateBoolean(iterContext));
        }
		internal XPathNodeIterator Select (XPathExpression expr, NSResolver ctx)
		{
			CompiledExpression cexpr = (CompiledExpression) expr;
			if (ctx == null)
				ctx = cexpr.NamespaceManager;
			
			BaseIterator iter = new NullIterator (this, ctx);
			return cexpr.EvaluateNodeSet (iter);
		}
		internal bool EvaluateBoolean (XPathExpression expr, XPathNodeIterator context, NSResolver ctx)
		{
			CompiledExpression cexpr = (CompiledExpression) expr;
			if (ctx == null)
				ctx = cexpr.NamespaceManager;
			
			if (context == null)
				context = new NullIterator (this, cexpr.NamespaceManager);
			BaseIterator iterContext = ToBaseIterator (context, ctx);
			iterContext.NamespaceManager = ctx;
			return cexpr.EvaluateBoolean (iterContext);
		}
示例#6
0
 private NullIterator(NullIterator other) : base(other, true)
 {
 }
示例#7
0
文件: Iterator.cs 项目: cyplo/mono
		private NullIterator (NullIterator other) : base (other, true) {}