public abstract class CGINIterator extends Object implements org.apache.commons.jxpath.ri.model.NodeIterator
| Modifier and Type | Field and Description |
|---|---|
protected CGINPointer[] |
children
Array of pointers to nodes that passed the NodeTest.
|
protected int |
position
Current position.
|
| Constructor and Description |
|---|
CGINIterator()
Subclasses are responsible for initialising the fields.
|
| Modifier and Type | Method and Description |
|---|---|
CGINPointer |
getNodePointer()
Gets pointer to node at current position.
|
int |
getPosition()
Gets the current position.
|
boolean |
setPosition(int position)
Sets the current position.
|
protected CGINPointer[] children
protected int position
public CGINIterator()
public CGINPointer getNodePointer()
getNodePointer in interface org.apache.commons.jxpath.ri.model.NodeIteratorpublic int getPosition()
getPosition in interface org.apache.commons.jxpath.ri.model.NodeIteratorpublic boolean setPosition(int position)
setPosition in interface org.apache.commons.jxpath.ri.model.NodeIteratorposition - new position