gpt4 book ai didi

net.sf.saxon.expr.XPathContextMajor.newContext()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 20:03:40 25 4
gpt4 key购买 nike

本文整理了Java中net.sf.saxon.expr.XPathContextMajor.newContext()方法的一些代码示例,展示了XPathContextMajor.newContext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathContextMajor.newContext()方法的具体详情如下:
包路径:net.sf.saxon.expr.XPathContextMajor
类名称:XPathContextMajor
方法名:newContext

XPathContextMajor.newContext介绍

[英]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.
[中]构建一个新的上下文作为另一个上下文的副本。新上下文被有效地添加到堆栈的顶部,并包含一个指向上一个上下文的指针。

代码示例

代码示例来源:origin: net.sourceforge.saxon/saxon

/**
* 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);
}

代码示例来源:origin: net.sf.saxon/Saxon-HE

/**
 * 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);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

/**
 * 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);
}

代码示例来源:origin: org.opengis.cite.saxon/saxon9

/**
* 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);
}

代码示例来源:origin: net.sf.saxon/Saxon-B

/**
* 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);
}

代码示例来源:origin: net.sf.saxon/Saxon-HE

/**
 * 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;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

/**
 * 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;
}

代码示例来源:origin: net.sourceforge.saxon/saxon

/**
 * 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);
  }
}

代码示例来源:origin: org.opengis.cite.saxon/saxon9

/**
 * 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);
  }
}

代码示例来源:origin: net.sourceforge.saxon/saxon

XPathContextMajor c2 = initialContext.newContext();
initialContext.setOriginatingConstructType(Location.CONTROLLER);
c2.openStackFrame(t.getStackFrameMap());

代码示例来源:origin: org.opengis.cite.saxon/saxon9

XPathContextMajor c2 = initialContext.newContext();
c2.setOrigin(this);
c2.openStackFrame(t.getStackFrameMap());

代码示例来源:origin: net.sf.saxon/Saxon-HE

XPathContextMajor c2 = initialContext.newContext();
initialContext.setOrigin(this);
c2.setCurrentComponent(initialComponent);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

XPathContextMajor c2 = initialContext.newContext();
initialContext.setOrigin(this);
c2.setCurrentComponent(initialComponent);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com