/** * Construct a new context as a copy of another. The new context is effectively added * to the top of a stack, and contains a pointer to the previous context */ public XPathContextMajor newContext() { return XPathContextMajor.newContext(this); }
/** * Construct a new context as a copy of another. The new context is effectively added * to the top of a stack, and contains a pointer to the previous context */ public XPathContextMajor newContext() { return XPathContextMajor.newContext(this); }
/** * Construct a new context as a copy of another. The new context is effectively added * to the top of a stack, and contains a pointer to the previous context */ public XPathContextMajor newContext() { return XPathContextMajor.newContext(this); }
/** * Construct a new context as a copy of another. The new context is effectively added * to the top of a stack, and contains a pointer to the previous context */ public XPathContextMajor newContext() { return XPathContextMajor.newContext(this); }
/** * Construct a new context as a copy of another. The new context is effectively added * to the top of a stack, and contains a pointer to the previous context */ public XPathContextMajor newContext() { return XPathContextMajor.newContext(this); }
/** * Make a copy of the supplied context for use in a new thread (typically for * an asynchronous xsl:result-document * * @param prev the context to be copied * @return the copy of the context */ public static XPathContextMajor newThreadContext(XPathContextMinor prev) { XPathContextMajor c = newContext(prev); c.stackFrame = prev.stackFrame.copy(); return c; }
/** * Make a copy of the supplied context for use in a new thread (typically for * an asynchronous xsl:result-document * * @param prev the context to be copied * @return the copy of the context */ public static XPathContextMajor newThreadContext(XPathContextMinor prev) { XPathContextMajor c = newContext(prev); c.stackFrame = prev.stackFrame.copy(); return c; }
/** * Process the instruction, without returning any tail calls * @param context The dynamic context, giving access to the current node, * the current variables, etc. */ public void process(XPathContext context) throws XPathException { if (expression == null) { // This is a Closure that simply wraps a SequenceIterator supplied from the Java level SequenceReceiver out = context.getReceiver(); while (true) { Item item = inputIterator.next(); if (item == null) { break; } out.append(item, 0, NodeInfo.ALL_NAMESPACES); } inputIterator = inputIterator.getAnother(); } else { // To evaluate the closure in push mode, we need to use the original context of the // expression for everything except the current output destination, which is newly created XPathContext c2 = savedXPathContext.newContext(); SequenceReceiver out = context.getReceiver(); c2.setTemporaryReceiver(out); expression.process(c2); } }
/** * Process the instruction, without returning any tail calls * @param context The dynamic context, giving access to the current node, * the current variables, etc. */ public void process(XPathContext context) throws XPathException { if (expression == null) { // This is a Closure that simply wraps a SequenceIterator supplied from the Java level SequenceReceiver out = context.getReceiver(); while (true) { Item item = inputIterator.next(); if (item == null) { break; } out.append(item, 0, NodeInfo.ALL_NAMESPACES); } inputIterator = inputIterator.getAnother(); } else { // To evaluate the closure in push mode, we need to use the original context of the // expression for everything except the current output destination, which is newly created XPathContext c2 = savedXPathContext.newContext(); SequenceReceiver out = context.getReceiver(); c2.setTemporaryReceiver(out); expression.process(c2); } }
XPathContextMajor c2 = initialContext.newContext(); initialContext.setOriginatingConstructType(Location.CONTROLLER); c2.openStackFrame(t.getStackFrameMap());
XPathContextMajor c2 = initialContext.newContext(); c2.setOrigin(this); c2.openStackFrame(t.getStackFrameMap());
XPathContextMajor c2 = initialContext.newContext(); initialContext.setOrigin(this); c2.setCurrentComponent(initialComponent);
XPathContextMajor c2 = initialContext.newContext(); initialContext.setOrigin(this); c2.setCurrentComponent(initialComponent);