当前位置: 首页>>代码示例>>Java>>正文


Java DTMAxisIterator.isReverse方法代码示例

本文整理汇总了Java中com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.isReverse方法的典型用法代码示例。如果您正苦于以下问题:Java DTMAxisIterator.isReverse方法的具体用法?Java DTMAxisIterator.isReverse怎么用?Java DTMAxisIterator.isReverse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.org.apache.xml.internal.dtm.DTMAxisIterator的用法示例。


在下文中一共展示了DTMAxisIterator.isReverse方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CurrentNodeListIterator

import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; //导入方法依赖的package包/类
public CurrentNodeListIterator(DTMAxisIterator source,
                               CurrentNodeListFilter filter,
                               int currentNode,
                               AbstractTranslet translet)
{
    this(source, !source.isReverse(), filter, currentNode, translet);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:CurrentNodeListIterator.java

示例2: NodeValueIterator

import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; //导入方法依赖的package包/类
public NodeValueIterator(DTMAxisIterator source, int returnType,
                         String value, boolean op)
{
    _source = source;
    _returnType = returnType;
    _value = value;
    _op = op;
    _isReverse = source.isReverse();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:SAXImpl.java

示例3: NodeValueIterator

import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; //导入方法依赖的package包/类
public NodeValueIterator(DTMAxisIterator source, int returnType,
                         String value, boolean op) {
    _source = source;
    _returnType = returnType;
    _value = value;
    _op = op;
    _isReverse = source.isReverse();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:MultiDOM.java

示例4: positionF

import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; //导入方法依赖的package包/类
/**
 * Standard function position()
 * @deprecated This method exists only for backwards compatibility with old
 *             translets.  New code should not reference it.
 */
@Deprecated
public static int positionF(DTMAxisIterator iterator) {
    return iterator.isReverse()
                 ? iterator.getLast() - iterator.getPosition() + 1
                 : iterator.getPosition();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:BasisLibrary.java

示例5: FilterIterator

import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; //导入方法依赖的package包/类
public FilterIterator(DTMAxisIterator source, DTMFilter filter) {
        _source = source;
// System.out.println("FI souce = " + source + " this = " + this);
        _filter = filter;
        _isReverse = source.isReverse();
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:FilterIterator.java

示例6: positionF

import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; //导入方法依赖的package包/类
/**
 * Standard function position()
 * @deprecated This method exists only for backwards compatibility with old
 *             translets.  New code should not reference it.
 */
public static int positionF(DTMAxisIterator iterator) {
    return iterator.isReverse()
                 ? iterator.getLast() - iterator.getPosition() + 1
                 : iterator.getPosition();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:BasisLibrary.java


注:本文中的com.sun.org.apache.xml.internal.dtm.DTMAxisIterator.isReverse方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。