|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jxpath.ri.EvalContext org.apache.commons.jxpath.ri.axes.ChildContext
EvalContext that can walk the "child::", "following-sibling::" and "preceding-sibling::" axes.
Field Summary | |
private NodeIterator |
iterator
|
private NodeTest |
nodeTest
|
private boolean |
reverse
|
private boolean |
startFromParentLocation
|
Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
parentContext, position, rootContext |
Constructor Summary | |
ChildContext(EvalContext parentContext,
NodeTest nodeTest,
boolean startFromParentLocation,
boolean reverse)
|
Method Summary | |
NodePointer |
getCurrentNodePointer()
Returns the current context node. |
Pointer |
getSingleNodePointer()
This method is called on the last context on the path when only one value is needed. |
boolean |
nextNode()
Returns true if there is another object in the current set. |
private void |
prepare()
Allocates a PropertyIterator. |
void |
reset()
Sets current position = 0, which is the pre-iteration state. |
boolean |
setPosition(int position)
Moves the current position to the specified index. |
Methods inherited from class org.apache.commons.jxpath.ri.EvalContext |
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, getValue, hasNext, isChildOrderingRequired, next, nextSet, remove, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private NodeTest nodeTest
private boolean startFromParentLocation
private boolean reverse
private NodeIterator iterator
Constructor Detail |
public ChildContext(EvalContext parentContext, NodeTest nodeTest, boolean startFromParentLocation, boolean reverse)
Method Detail |
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public Pointer getSingleNodePointer()
getSingleNodePointer
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
public void reset()
EvalContext
reset
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
private void prepare()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |