public class ParentContext extends EvalContext
Modifier and Type | Field and Description |
---|---|
private NodePointer |
currentNodePointer |
private NodeTest |
nodeTest |
private boolean |
setStarted |
parentContext, position, rootContext
Constructor and Description |
---|
ParentContext(EvalContext parentContext,
NodeTest nodeTest)
Create a new ParentContext.
|
Modifier and Type | Method and Description |
---|---|
NodePointer |
getCurrentNodePointer()
Returns the current context node.
|
int |
getCurrentPosition()
Get the current position.
|
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.
|
getContextNodeList, getContextNodePointer, getJXPathContext, getNodeSet, getPosition, getRootContext, getSingleNodePointer, getValue, hasNext, isChildOrderingRequired, next, nextSet, remove, sortPointers, toString
private NodeTest nodeTest
private boolean setStarted
private NodePointer currentNodePointer
public ParentContext(EvalContext parentContext, NodeTest nodeTest)
parentContext
- parent contextnodeTest
- testpublic NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public int getCurrentPosition()
EvalContext
getCurrentPosition
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
position
- to setpublic boolean nextNode()
EvalContext
nextNode
in class EvalContext