|
|||||||||||
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.PrecedingOrFollowingContext
EvalContext that walks the "preceding::" and "following::" axes.
Field Summary | |
private NodePointer |
currentNodePointer
|
private NodePointer |
currentRootLocation
|
private java.util.Stack |
nameStack
|
private NodeTest |
nodeTest
|
private boolean |
reverse
|
private boolean |
setStarted
|
private java.util.Stack |
stack
|
private boolean |
started
|
Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
parentContext, position, rootContext |
Constructor Summary | |
PrecedingOrFollowingContext(EvalContext parentContext,
NodeTest nodeTest,
boolean reverse)
|
Method Summary | |
NodePointer |
getCurrentNodePointer()
Returns the current context node. |
int |
getDocumentOrder()
Determines the document order for this context. |
boolean |
nextNode()
Returns true if there is another object in the current set. |
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, getJXPathContext, getNodeSet, getPosition, getRootContext, getSingleNodePointer, 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 setStarted
private boolean started
private java.util.Stack stack
private java.util.Stack nameStack
private NodePointer currentNodePointer
private NodePointer currentRootLocation
private boolean reverse
Constructor Detail |
public PrecedingOrFollowingContext(EvalContext parentContext, NodeTest nodeTest, boolean reverse)
Method Detail |
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public int getDocumentOrder()
EvalContext
getDocumentOrder
in class EvalContext
public void reset()
EvalContext
reset
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |