| org.apache.xpath.axes.PredicatedNodeTest org.apache.xpath.axes.LocPathIterator org.apache.xpath.axes.BasicTestIterator
All known Subclasses: org.apache.xpath.axes.FilterExprIterator, org.apache.xpath.axes.ChildTestIterator,
BasicTestIterator | abstract public class BasicTestIterator extends LocPathIterator (Code) | | Base for iterators that handle predicates. Does the basic next
node logic, so all the derived iterator has to do is get the
next node.
|
Constructor Summary | |
protected | BasicTestIterator() Create a LocPathIterator object. | protected | BasicTestIterator(PrefixResolver nscontext) 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. |
Method Summary | |
public DTMIterator | cloneWithReset() Get a cloned Iterator that is reset to the beginning
of the query. | abstract protected int | getNextNode() Get the next node via getNextXXX. | public int | nextNode() Returns the next node in the set and advances the position of the
iterator in the set. |
serialVersionUID | final static long serialVersionUID(Code) | | |
BasicTestIterator | protected BasicTestIterator()(Code) | | Create a LocPathIterator object.
Parameters: nscontext - The namespace context for this iterator,should be OK if null. |
BasicTestIterator | protected BasicTestIterator(PrefixResolver nscontext)(Code) | | Create a LocPathIterator object.
Parameters: nscontext - The namespace context for this iterator,should be OK if null. |
BasicTestIterator | protected BasicTestIterator(Compiler compiler, int opPos, int analysis) throws javax.xml.transform.TransformerException(Code) | | Create a LocPathIterator object, including creation
of step walkers from the opcode list, and call back
into the Compiler to create predicate expressions.
Parameters: compiler - The Compiler which is creatingthis expression. Parameters: opPos - The position of this iterator in theopcode list from the compiler. throws: javax.xml.transform.TransformerException - |
BasicTestIterator | protected BasicTestIterator(Compiler compiler, int opPos, int analysis, boolean shouldLoadWalkers) throws javax.xml.transform.TransformerException(Code) | | Create a LocPathIterator object, including creation
of step walkers from the opcode list, and call back
into the Compiler to create predicate expressions.
Parameters: compiler - The Compiler which is creatingthis expression. Parameters: opPos - The position of this iterator in theopcode list from the compiler. Parameters: shouldLoadWalkers - True if walkers should beloaded, or false if this is a derived iterator andit doesn't wish to load child walkers. throws: javax.xml.transform.TransformerException - |
getNextNode | abstract protected int getNextNode()(Code) | | Get the next node via getNextXXX. Bottlenecked for derived class override.
The next node on the axis, or DTM.NULL. |
nextNode | public int nextNode()(Code) | | Returns the next node in the set and advances the position of the
iterator in the set. After a NodeIterator is created, the first call
to nextNode() returns the first node in the set.
The next Node in the set being iterated over, ornull if there are no more members in that set. |
|
|