gpt4 book ai didi

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

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

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

XPathContextMajor.setCurrentGroupIterator介绍

[英]Set the current grouping iterator. This supports the current-group() and current-grouping-key() functions in XSLT 2.0
[中]设置当前分组迭代器。这支持XSLT 2.0中的current-group()和current-grouping-key()函数

代码示例

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

/**
 * Return an Iterator to iterate over the values of a sequence. The value of every
 * expression can be regarded as a sequence, so this method is supported for all
 * expressions. This default implementation relies on the process() method: it
 * "pushes" the results of the instruction to a sequence in memory, and then
 * iterates over this in-memory sequence.
 * <p>In principle instructions should implement a pipelined iterate() method that
 * avoids the overhead of intermediate storage.</p>
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws XPathException if any dynamic error occurs evaluating the
 *                        expression
 */
/*@NotNull*/
public SequenceIterator<?> iterate(XPathContext context) throws XPathException {
  GroupIterator master = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.trackFocus(master);
  c2.setCurrentGroupIterator(master);
  c2.setCurrentTemplateRule(null);
  return new ContextMappingIterator<>(this, c2);
}

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

/**
 * Return an Iterator to iterate over the values of a sequence. The value of every
 * expression can be regarded as a sequence, so this method is supported for all
 * expressions. This default implementation relies on the process() method: it
 * "pushes" the results of the instruction to a sequence in memory, and then
 * iterates over this in-memory sequence.
 * <p/>
 * In principle instructions should implement a pipelined iterate() method that
 * avoids the overhead of intermediate storage.
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws XPathException if any dynamic error occurs evaluating the
 *                        expression
 */
public SequenceIterator iterate(XPathContext context) throws XPathException {
  GroupIterator master = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.setCurrentIterator(master);
  c2.setCurrentGroupIterator(master);
  c2.setCurrentTemplateRule(null);
  return new ContextMappingIterator(this, c2);
}

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

c2.setCurrentIterator(base);
c2.setOrigin(origin);
c2.setCurrentGroupIterator((GroupIterator)base);

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

/**
 * Return an Iterator to iterate over the values of a sequence. The value of every
 * expression can be regarded as a sequence, so this method is supported for all
 * expressions. This default implementation relies on the process() method: it
 * "pushes" the results of the instruction to a sequence in memory, and then
 * iterates over this in-memory sequence.
 * <p/>
 * In principle instructions should implement a pipelined iterate() method that
 * avoids the overhead of intermediate storage.
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws XPathException if any dynamic error occurs evaluating the
 *                        expression
 */
public SequenceIterator iterate(XPathContext context) throws XPathException {
  GroupIterator master = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.setCurrentIterator(master);
  c2.setCurrentGroupIterator(master);
  c2.setCurrentTemplateRule(null);
  return new ContextMappingIterator(this, c2);
}

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

c2.setCurrentIterator(base);
c2.setOrigin(origin);
c2.setCurrentGroupIterator((GroupIterator)base);

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

/**
 * Return an Iterator to iterate over the values of a sequence. The value of every
 * expression can be regarded as a sequence, so this method is supported for all
 * expressions. This default implementation relies on the process() method: it
 * "pushes" the results of the instruction to a sequence in memory, and then
 * iterates over this in-memory sequence.
 * <p>In principle instructions should implement a pipelined iterate() method that
 * avoids the overhead of intermediate storage.</p>
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws XPathException if any dynamic error occurs evaluating the
 *                        expression
 */
/*@NotNull*/
public SequenceIterator<?> iterate(XPathContext context) throws XPathException {
  GroupIterator master = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.trackFocus(master);
  c2.setCurrentGroupIterator(master);
  c2.setCurrentTemplateRule(null);
  return new ContextMappingIterator<>(this, c2);
}

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

c2.setCurrentIterator((FocusIterator<Item<?>>)base);
GroupIterator groupIter = (GroupIterator)((FocusTrackingIterator)base).getUnderlyingIterator();
c2.setCurrentGroupIterator(groupIter);

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

c2.setCurrentIterator((FocusIterator<Item<?>>)base);
GroupIterator groupIter = (GroupIterator)((FocusTrackingIterator)base).getUnderlyingIterator();
c2.setCurrentGroupIterator(groupIter);

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

public TailCall processLeavingTail(XPathContext context) throws XPathException {
  Controller controller = context.getController();
  GroupIterator groupIterator = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.setCurrentIterator(groupIterator);
  c2.setCurrentGroupIterator(groupIterator);
  c2.setCurrentTemplateRule(null);
  if (controller.isTracing()) {
    TraceListener listener = controller.getTraceListener();
    while (true) {
      Item item = groupIterator.next();
      if (item == null) {
        break;
      }
      listener.startCurrentItem(item);
      action.process(c2);
      listener.endCurrentItem(item);
    }
  } else {
    while (true) {
      Item item = groupIterator.next();
      if (item == null) {
        break;
      }
      action.process(c2);
    }
  }
  return null;
}

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

public TailCall processLeavingTail(XPathContext context) throws XPathException {
  Controller controller = context.getController();
  GroupIterator groupIterator = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.setCurrentIterator(groupIterator);
  c2.setCurrentGroupIterator(groupIterator);
  c2.setCurrentTemplateRule(null);
  if (controller.isTracing()) {
    TraceListener listener = controller.getTraceListener();
    while (true) {
      Item item = groupIterator.next();
      if (item == null) {
        break;
      }
      listener.startCurrentItem(item);
      action.process(c2);
      listener.endCurrentItem(item);
    }
  } else {
    while (true) {
      Item item = groupIterator.next();
      if (item == null) {
        break;
      }
      action.process(c2);
    }
  }
  return null;
}

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

public TailCall processLeavingTail(XPathContext context) throws XPathException {
  Controller controller = context.getController();
  assert controller != null;
  PipelineConfiguration pipe = context.getReceiver().getPipelineConfiguration();
  GroupIterator groupIterator = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  FocusIterator focusIterator = c2.trackFocus(groupIterator);
  c2.setCurrentGroupIterator(groupIterator);
  c2.setCurrentTemplateRule(null);
  pipe.setXPathContext(c2);
  if (controller.isTracing()) {
    TraceListener listener = controller.getTraceListener();
    assert listener != null;
    Item item;
    while ((item = focusIterator.next()) != null) {
      listener.startCurrentItem(item);
      getActionExpression().process(c2);
      listener.endCurrentItem(item);
    }
  } else {
    while (focusIterator.next() != null) {
      getActionExpression().process(c2);
    }
  }
  pipe.setXPathContext(context);
  return null;
}

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

public TailCall processLeavingTail(XPathContext context) throws XPathException {
  Controller controller = context.getController();
  assert controller != null;
  PipelineConfiguration pipe = context.getReceiver().getPipelineConfiguration();
  GroupIterator groupIterator = getGroupIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  FocusIterator focusIterator = c2.trackFocus(groupIterator);
  c2.setCurrentGroupIterator(groupIterator);
  c2.setCurrentTemplateRule(null);
  pipe.setXPathContext(c2);
  if (controller.isTracing()) {
    TraceListener listener = controller.getTraceListener();
    assert listener != null;
    Item item;
    while ((item = focusIterator.next()) != null) {
      listener.startCurrentItem(item);
      getActionExpression().process(c2);
      listener.endCurrentItem(item);
    }
  } else {
    while (focusIterator.next() != null) {
      getActionExpression().process(c2);
    }
  }
  pipe.setXPathContext(context);
  return null;
}

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

c2.setTunnelParameters(assembleTunnelParams(context, tunnelParams));
if (isWithinDeclaredStreamableConstruct) {
  c2.setCurrentGroupIterator(null);

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

c2.setTunnelParameters(assembleTunnelParams(context, tunnelParams));
if (isWithinDeclaredStreamableConstruct) {
  c2.setCurrentGroupIterator(null);

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

c2.setCurrentComponent(targetMode);
if (inStreamableConstruct) {
  c2.setCurrentGroupIterator(null);

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

c2.setCurrentComponent(targetMode);
if (inStreamableConstruct) {
  c2.setCurrentGroupIterator(null);

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