public abstract class BasicTestIterator extends LocPathIterator
m_allowDetach, m_cdtm, m_clones, m_context, m_currentContextNode, m_execContext, m_lastFetched, m_length, m_pos
m_foundLast, m_lpi, m_predCount, m_proximityPositions
m_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SUPPORTS_PRE_STRIPPING, WILD
FILTER_ACCEPT, FILTER_REJECT, FILTER_SKIP
Modifier | Constructor and Description |
---|---|
protected |
BasicTestIterator()
Create a LocPathIterator object.
|
protected |
BasicTestIterator(Compiler compiler,
int opPos,
int analysis)
Create a LocPathIterator object, including creation
of step walkers from the opcode list, and call back
into the Compiler to create predicate expressions.
|
protected |
BasicTestIterator(Compiler compiler,
int opPos,
int analysis,
boolean shouldLoadWalkers)
Create a LocPathIterator object, including creation
of step walkers from the opcode list, and call back
into the Compiler to create predicate expressions.
|
protected |
BasicTestIterator(PrefixResolver nscontext)
Create a LocPathIterator object.
|
Modifier and Type | Method and Description |
---|---|
DTMIterator |
cloneWithReset()
Get a cloned Iterator that is reset to the beginning
of the query.
|
protected abstract int |
getNextNode()
Get the next node via getNextXXX.
|
int |
nextNode()
Returns the next node in the set and advances the position of the
iterator in the set.
|
allowDetachToRelease, asIterator, asNode, bool, callVisitors, detach, execute, executeCharsToContentHandler, getAnalysisBits, getAxis, getContext, getCurrentContextNode, getCurrentNode, getCurrentPos, getDTM, getDTMManager, getExpandEntityReferences, getFilter, getFoundLast, getIsTopLevel, getLastPos, getLength, getPrefixResolver, getRoot, getWhatToShow, getXPathContext, incrementCurrentPos, isDocOrdered, isFresh, isMutable, isNodesetExpr, item, previousNode, reset, returnNextNode, runTo, setCurrentContextNode, setCurrentPos, setEnvironment, setIsTopLevel, setItem, setNextPosition, setRoot, setShouldCacheNodes, size
acceptNode, callPredicateVisitors, canTraverseOutsideSubtree, clone, countProximityPosition, deepEquals, fixupVariables, getLocPathIterator, getPredicate, getPredicateCount, getPredicateIndex, getProximityPosition, getProximityPosition, getProximityPosition, initPredicateInfo, initProximityPosition, isReverseAxes, nodeToString, resetProximityPositions, setLocPathIterator, setPredicateCount
calcScore, debugWhatToShow, execute, execute, getDefaultScore, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow
asIteratorRaw, assertion, error, execute, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num, warn, xstr
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected BasicTestIterator()
nscontext
- The namespace context for this iterator,
should be OK if null.protected BasicTestIterator(PrefixResolver nscontext)
nscontext
- The namespace context for this iterator,
should be OK if null.protected BasicTestIterator(Compiler compiler, int opPos, int analysis) throws TransformerException
compiler
- The Compiler which is creating
this expression.opPos
- The position of this iterator in the
opcode list from the compiler.TransformerException
protected BasicTestIterator(Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers) throws TransformerException
compiler
- The Compiler which is creating
this expression.opPos
- The position of this iterator in the
opcode list from the compiler.shouldLoadWalkers
- True if walkers should be
loaded, or false if this is a derived iterator and
it doesn't wish to load child walkers.TransformerException
protected abstract int getNextNode()
public int nextNode()
nextNode
in interface DTMIterator
nextNode
in class LocPathIterator
Node
in the set being iterated over, or
null
if there are no more members in that set.public DTMIterator cloneWithReset() throws CloneNotSupportedException
cloneWithReset
in interface DTMIterator
cloneWithReset
in class LocPathIterator
CloneNotSupportedException
Copyright © 2017 JBoss by Red Hat. All rights reserved.