|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.xpath.pattern.NodeIterator
com.caucho.xpath.pattern.AxisIterator
public class AxisIterator
Uses the axis to select new nodes.
Field Summary | |
---|---|
protected AbstractPattern |
_axis
|
protected org.w3c.dom.Node |
_lastNode
|
protected AbstractPattern |
_match
|
protected org.w3c.dom.Node |
_next
|
protected org.w3c.dom.Node |
_node
|
protected NodeIterator |
_parentIter
|
Fields inherited from class com.caucho.xpath.pattern.NodeIterator |
---|
_contextNode, _env, _position, _size, log |
Constructor Summary | |
---|---|
protected |
AxisIterator(ExprEnvironment env)
|
|
AxisIterator(NodeIterator parentIter,
AbstractPattern axis,
org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern match)
Creates the new AxisIterator. |
Method Summary | |
---|---|
java.lang.Object |
clone()
clones the iterator |
int |
getContextSize()
Returns the number of nodes in the context list. |
boolean |
hasNext()
True if there's more data. |
org.w3c.dom.Node |
nextNode()
Returns the next selected node. |
java.lang.String |
toString()
|
Methods inherited from class com.caucho.xpath.pattern.NodeIterator |
---|
copy, getContextNode, getContextPosition, getCurrentNode, getFunction, getOwnerDocument, getPositionIndex, getStylesheetEnv, getVar, next, nextSelectedNode, remove, setContextNode, setMorePositions, stringValue, systemProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected NodeIterator _parentIter
protected AbstractPattern _axis
protected org.w3c.dom.Node _node
protected org.w3c.dom.Node _next
protected org.w3c.dom.Node _lastNode
protected AbstractPattern _match
Constructor Detail |
---|
protected AxisIterator(ExprEnvironment env)
public AxisIterator(NodeIterator parentIter, AbstractPattern axis, org.w3c.dom.Node node, ExprEnvironment env, AbstractPattern match) throws XPathException
parentIter
- the parent iteratoraxis
- the owning axisnode
- the first nodeenv
- the variable environmentmatch
- the node matching pattern
XPathException
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.w3c.dom.Node>
hasNext
in class NodeIterator
public org.w3c.dom.Node nextNode() throws XPathException
nextNode
in class NodeIterator
XPathException
public int getContextSize()
getContextSize
in interface ExprEnvironment
getContextSize
in class NodeIterator
public java.lang.Object clone()
NodeIterator
clone
in class NodeIterator
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |