class ConfigurationNodeIteratorChildren extends ConfigurationNodeIteratorBase
Constructor and Description |
---|
ConfigurationNodeIteratorChildren(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startsWith)
Creates a new instance of
ConfigurationNodeIteratorChildren
and initializes it. |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
createSubNodeList(ConfigurationNode node,
org.apache.commons.jxpath.ri.compiler.NodeTest test)
Creates the list with sub nodes.
|
protected int |
findStartIndex(ConfigurationNode node,
ConfigurationNode startNode)
Determines the start position of the iteration.
|
createNodePointer, getMaxPosition, getNodePointer, getParent, getPosition, getStartOffset, initSubNodeList, positionToIndex, setPosition, setStartOffset
public ConfigurationNodeIteratorChildren(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest, boolean reverse, org.apache.commons.jxpath.ri.model.NodePointer startsWith)
ConfigurationNodeIteratorChildren
and initializes it.parent
- the parent pointernodeTest
- the test selecting the sub nodesreverse
- the reverse flagstartsWith
- the first element of the iterationprotected java.util.List createSubNodeList(ConfigurationNode node, org.apache.commons.jxpath.ri.compiler.NodeTest test)
node
- the current nodetest
- the test objectprotected int findStartIndex(ConfigurationNode node, ConfigurationNode startNode)
node
- the root nodestartNode
- the start node