net.sf.saxon.sxpath.XPathDynamicContext.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(81)

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

XPathDynamicContext.<init>介绍

暂无

代码示例

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

/**
 * Create a dynamic context suitable for evaluating this expression
 * @param contextItem the initial context item, which may be null if no
 * context item is required, or if it is to be supplied later
 * @return an XPathDynamicContext object representing a suitable dynamic context. This will
 * be initialized with a stack frame suitable for holding the variables used by the
 * expression.
 */
public XPathDynamicContext createDynamicContext(Item contextItem) {
  XPathContextMajor context = new XPathContextMajor(contextItem, evaluator.getExecutable());
  context.openStackFrame(stackFrameMap);
  return new XPathDynamicContext(context, stackFrameMap);
}

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

/**
 * Create a dynamic context suitable for evaluating this expression, without supplying a context
 * item
 *
 * @return an XPathDynamicContext object representing a suitable dynamic context. This will
 *         be initialized with a stack frame suitable for holding the variables used by the
 *         expression.
 */
public XPathDynamicContext createDynamicContext() {
  XPathContextMajor context = new XPathContextMajor(null, executable);
  context.openStackFrame(stackFrameMap);
  return new XPathDynamicContext(env.getRequiredContextItemType(), context, stackFrameMap);
}

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

/**
 * Create a dynamic context suitable for evaluating this expression, without supplying a context
 * item
 *
 * @return an XPathDynamicContext object representing a suitable dynamic context. This will
 *         be initialized with a stack frame suitable for holding the variables used by the
 *         expression.
 */
public XPathDynamicContext createDynamicContext() {
  XPathContextMajor context = new XPathContextMajor(null, executable);
  context.openStackFrame(stackFrameMap);
  return new XPathDynamicContext(env.getRequiredContextItemType(), context, stackFrameMap);
}

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

/**
 * Create a dynamic context suitable for evaluating this expression
 * @param contextItem the initial context item, which may be null if no
 * context item is required, or if it is to be supplied later
 * @return an XPathDynamicContext object representing a suitable dynamic context. This will
 * be initialized with a stack frame suitable for holding the variables used by the
 * expression.
 */
public XPathDynamicContext createDynamicContext(Item contextItem) {
  XPathContextMajor context = new XPathContextMajor(contextItem, evaluator.getExecutable());
  context.openStackFrame(stackFrameMap);
  return new XPathDynamicContext(context);
}

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

/**
 * Create a dynamic context suitable for evaluating this expression
 *
 * @param contextItem the initial context item, which may be null if no
 *                    context item is required, or if it is to be supplied later
 * @return an XPathDynamicContext object representing a suitable dynamic context. This will
 *         be initialized with a stack frame suitable for holding the variables used by the
 *         expression.
 * @throws XPathException if the context item does not match the required context item type
 *                        set up in the static context
 */
public XPathDynamicContext createDynamicContext(Item contextItem) throws XPathException {
  checkContextItemType(contextItem);
  XPathContextMajor context = new XPathContextMajor(contextItem, executable);
  context.openStackFrame(stackFrameMap);
  return new XPathDynamicContext(env.getRequiredContextItemType(), context, stackFrameMap);
}

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

/**
 * Create a dynamic context suitable for evaluating this expression
 *
 * @param contextItem the initial context item, which may be null if no
 *                    context item is required, or if it is to be supplied later
 * @return an XPathDynamicContext object representing a suitable dynamic context. This will
 *         be initialized with a stack frame suitable for holding the variables used by the
 *         expression.
 * @throws XPathException if the context item does not match the required context item type
 *                        set up in the static context
 */
public XPathDynamicContext createDynamicContext(Item contextItem) throws XPathException {
  checkContextItemType(contextItem);
  XPathContextMajor context = new XPathContextMajor(contextItem, executable);
  context.openStackFrame(stackFrameMap);
  return new XPathDynamicContext(env.getRequiredContextItemType(), context, stackFrameMap);
}

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

XPathContextMajor context = controller.newXPathContext();
context.openStackFrame(stackFrameMap);
XPathDynamicContext dc = new XPathDynamicContext(env.getRequiredContextItemType(), context, stackFrameMap);
if (contextItem != null) {
  dc.setContextItem(contextItem);

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

XPathContextMajor context = controller.newXPathContext();
context.openStackFrame(stackFrameMap);
XPathDynamicContext dc = new XPathDynamicContext(env.getRequiredContextItemType(), context, stackFrameMap);
if (contextItem != null) {
  dc.setContextItem(contextItem);

相关文章