本文整理了Java中org.apache.xpath.axes.WalkingIterator.getAnalysisBits()
方法的一些代码示例,展示了WalkingIterator.getAnalysisBits()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WalkingIterator.getAnalysisBits()
方法的具体详情如下:
包路径:org.apache.xpath.axes.WalkingIterator
类名称:WalkingIterator
方法名:getAnalysisBits
[英]Get the analysis bits for this walker, as defined in the WalkerFactory.
[中]获取WalkerFactory中定义的该walker的分析位。
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* This function is used to perform some extra analysis of the iterator.
*
* @param vars List of QNames that correspond to variables. This list
* should be searched backwards for the first qualified name that
* corresponds to the variable reference qname. The position of the
* QName in the vector from the start of the vector will be its position
* in the stack frame (but variables above the globalsTop value will need
* to be offset to the current stack frame).
*/
public void fixupVariables(java.util.Vector vars, int globalsSize)
{
super.fixupVariables(vars, globalsSize);
int analysis = getAnalysisBits();
if(WalkerFactory.isNaturalDocOrder(analysis))
{
m_inNaturalOrderStatic = true;
}
else
{
m_inNaturalOrderStatic = false;
// System.out.println("Setting natural doc order to false: "+
// WalkerFactory.getAnalysisString(analysis));
}
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* This function is used to perform some extra analysis of the iterator.
*
* @param vars List of QNames that correspond to variables. This list
* should be searched backwards for the first qualified name that
* corresponds to the variable reference qname. The position of the
* QName in the vector from the start of the vector will be its position
* in the stack frame (but variables above the globalsTop value will need
* to be offset to the current stack frame).
*/
public void fixupVariables(java.util.Vector vars, int globalsSize)
{
super.fixupVariables(vars, globalsSize);
int analysis = getAnalysisBits();
if(WalkerFactory.isNaturalDocOrder(analysis))
{
m_inNaturalOrderStatic = true;
}
else
{
m_inNaturalOrderStatic = false;
// System.out.println("Setting natural doc order to false: "+
// WalkerFactory.getAnalysisString(analysis));
}
}
内容来源于网络,如有侵权,请联系作者删除!