public class ParentContext extends EvalContext
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, toStringpublic ParentContext(EvalContext parentContext, NodeTest nodeTest)
parentContext - parent contextnodeTest - testpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer in class EvalContextpublic int getCurrentPosition()
EvalContextgetCurrentPosition in class EvalContextpublic int getDocumentOrder()
EvalContextgetDocumentOrder in class EvalContextpublic void reset()
EvalContextreset in class EvalContextpublic boolean setPosition(int position)
EvalContextsetPosition in class EvalContextposition - to setpublic boolean nextNode()
EvalContextnextNode in class EvalContextCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.