gpt4 book ai didi

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

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

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

XPathContextMajor.setCurrentRegexIterator介绍

[英]Set the current regex iterator. This supports the functionality of the regex-group() function in XSLT 2.0.
[中]设置当前的正则迭代器。这支持XSLT 2.0中regex-group()函数的功能。

代码示例

代码示例来源: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 handles iteration for expressions that
 * return singleton values: for non-singleton expressions, the subclass must
 * provide its own implementation.
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws net.sf.saxon.trans.XPathException
 *          if any dynamic error occurs evaluating the
 *          expression
 */
public SequenceIterator iterate(XPathContext context) throws XPathException {
  RegexIterator iter = getRegexIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.setCurrentIterator(iter);
  c2.setCurrentRegexIterator(iter);
  AnalyzeMappingFunction fn = new AnalyzeMappingFunction(iter, c2);
  return new ContextMappingIterator(fn, c2);
}

代码示例来源: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 handles iteration for expressions that
 * return singleton values: for non-singleton expressions, the subclass must
 * provide its own implementation.
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws net.sf.saxon.trans.XPathException
 *          if any dynamic error occurs evaluating the
 *          expression
 */
public SequenceIterator iterate(XPathContext context) throws XPathException {
  RegexIterator iter = getRegexIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.setCurrentIterator(iter);
  c2.setCurrentRegexIterator(iter);
  AnalyzeMappingFunction fn = new AnalyzeMappingFunction(iter, c2);
  return new ContextMappingIterator(fn, c2);
}

代码示例来源: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 handles iteration for expressions that
 * return singleton values: for non-singleton expressions, the subclass must
 * provide its own implementation.
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws net.sf.saxon.trans.XPathException
 *          if any dynamic error occurs evaluating the
 *          expression
 */
/*@NotNull*/
public SequenceIterator<?> iterate(XPathContext context) throws XPathException {
  RegexIterator iter = getRegexIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.trackFocus(iter);
  c2.setCurrentRegexIterator(iter);
  AnalyzeMappingFunction fn = new AnalyzeMappingFunction(iter, c2, getNonMatching(), getMatching());
  return new ContextMappingIterator<>(fn, c2);
}

代码示例来源: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 handles iteration for expressions that
 * return singleton values: for non-singleton expressions, the subclass must
 * provide its own implementation.
 *
 * @param context supplies the context for evaluation
 * @return a SequenceIterator that can be used to iterate over the result
 *         of the expression
 * @throws net.sf.saxon.trans.XPathException
 *          if any dynamic error occurs evaluating the
 *          expression
 */
/*@NotNull*/
public SequenceIterator<?> iterate(XPathContext context) throws XPathException {
  RegexIterator iter = getRegexIterator(context);
  XPathContextMajor c2 = context.newContext();
  c2.setOrigin(this);
  c2.trackFocus(iter);
  c2.setCurrentRegexIterator(iter);
  AnalyzeMappingFunction fn = new AnalyzeMappingFunction(iter, c2, getNonMatching(), getMatching());
  return new ContextMappingIterator(fn, c2);
}

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

c2.setOrigin(this);
c2.setCurrentIterator(iter);
c2.setCurrentRegexIterator(iter);

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

c2.setOrigin(this);
c2.setCurrentIterator(iter);
c2.setCurrentRegexIterator(iter);

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

c2.setOrigin(this);
FocusIterator focusIter = c2.trackFocus(iter);
c2.setCurrentRegexIterator(iter);

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

c2.setOrigin(this);
FocusIterator focusIter = c2.trackFocus(iter);
c2.setCurrentRegexIterator(iter);

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