Examples of openStackFrame()


Examples of client.net.sf.saxon.ce.expr.XPathContextMajor.openStackFrame()

        public TailCall processLeavingTail() throws XPathException {
            Template nh = rule.getAction();
            XPathContextMajor c2 = evaluationContext.newContext();
            c2.setLocalParameters(params);
            c2.setTunnelParameters(tunnelParams);
            c2.openStackFrame(nh.getStackFrameMap());
            c2.setCurrentTemplateRule(rule);

            // System.err.println("Tail call on template");

            return nh.applyLeavingTail(c2);
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.XPathContextMajor.openStackFrame()

            AttributeSet.expand(useAttributeSets, context);
        }

        if (getStackFrameMap() != null) {
            XPathContextMajor c2 = context.newContext();
            c2.openStackFrame(getStackFrameMap());
            getBody().process(c2);
        } else {
            getBody().process(context);
        }
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.XPathContextMajor.openStackFrame()

                    tc = tc.processLeavingTail();
                }
            } else {
                Template t = initialTemplate;
                XPathContextMajor c2 = initialContext.newContext();
                c2.openStackFrame(t.getStackFrameMap());
                c2.setLocalParameters(new ParameterSet());
                c2.setTunnelParameters(new ParameterSet());

                TailCall tc = t.expand(c2);
                while (tc != null) {
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.XPathContextMajor.openStackFrame()

            Arrays.fill(context.getStackFrame().getStackFrameValues(), null);
            return new NextMatchPackage(rule, params, tunnels, context);
        } else {
            Template nh = rule.getAction();
            XPathContextMajor c2 = context.newContext();
            c2.openStackFrame(nh.getStackFrameMap());
            c2.setLocalParameters(params);
            c2.setTunnelParameters(tunnels);
            c2.setCurrentTemplateRule(rule);
            nh.apply(c2);
        }
View Full Code Here

Examples of net.sf.saxon.expr.XPathContextMajor.openStackFrame()

        }

        if (getStackFrameMap() != null) {
            XPathContextMajor c2 = context.newContext();
            c2.setOrigin(this);
            c2.openStackFrame(getStackFrameMap());
            getBody().process(c2);
        } else {
            getBody().process(context);
        }
    }
View Full Code Here

Examples of net.sf.saxon.expr.XPathContextMajor.openStackFrame()

        } else {
            Template nh = (Template)rule.getAction();
            XPathContextMajor c2 = context.newContext();
            c2.setOrigin(this);
            c2.setOriginatingConstructType(Location.TEMPLATE);
            c2.openStackFrame(nh.getStackFrameMap());
            c2.setLocalParameters(params);
            c2.setTunnelParameters(tunnels);
            c2.setCurrentTemplateRule(rule);
            nh.apply(c2);
        }
View Full Code Here

Examples of net.sf.saxon.expr.XPathContextMajor.openStackFrame()

            XPathContextMajor c2 = evaluationContext.newContext();
            c2.setOrigin(NextMatch.this);
            c2.setOriginatingConstructType(Location.TEMPLATE);
            c2.setLocalParameters(params);
            c2.setTunnelParameters(tunnelParams);
            c2.openStackFrame(nh.getStackFrameMap());
            c2.setCurrentTemplateRule(rule);

            // System.err.println("Tail call on template");

            return nh.applyLeavingTail(c2);
View Full Code Here

Examples of net.sf.saxon.expr.XPathContextMajor.openStackFrame()

     * expression.
     */

    public XPathDynamicContext createDynamicContext(Item contextItem) {
        XPathContextMajor context = new XPathContextMajor(contextItem, evaluator.getExecutable());
        context.openStackFrame(stackFrameMap);
        return new XPathDynamicContext(context, stackFrameMap);
    }

    /**
     * Create a dynamic context suitable for evaluating this expression within an environement
View Full Code Here

Examples of net.sf.saxon.expr.XPathContextMajor.openStackFrame()

    throws XPathException {
        if (controller == null) {
            return createDynamicContext(contextItem);
        } else {
            XPathContextMajor context = controller.newXPathContext();
            context.openStackFrame(stackFrameMap);
            XPathDynamicContext dc = new XPathDynamicContext(context, stackFrameMap);
            dc.setContextItem(contextItem);
            return dc;
        }
    }
View Full Code Here

Examples of net.sf.saxon.expr.XPathContextMajor.openStackFrame()

            }
        } else {
            Template t = initialTemplate;
            XPathContextMajor c2 = initialContext.newContext();
            initialContext.setOriginatingConstructType(Location.CONTROLLER);
            c2.openStackFrame(t.getStackFrameMap());
            c2.setLocalParameters(new ParameterSet());
            c2.setTunnelParameters(new ParameterSet());

            TailCall tc = t.expand(c2);
            while (tc != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.