예제 #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) {}