public class DescendantContext extends EvalContext
parentContext, position, rootContext| Constructor and Description |
|---|
DescendantContext(EvalContext parentContext,
boolean includeSelf,
NodeTest nodeTest)
Create a new DescendantContext.
|
| Modifier and Type | Method and Description |
|---|---|
NodePointer |
getCurrentNodePointer()
Returns the current context node.
|
boolean |
isChildOrderingRequired()
Even if this context has the natural ordering and therefore does
not require collecting and sorting all nodes prior to returning them,
such operation may be required for any child 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, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, getSingleNodePointer, getValue, hasNext, next, nextSet, remove, sortPointers, toStringpublic DescendantContext(EvalContext parentContext, boolean includeSelf, NodeTest nodeTest)
parentContext - parent contextincludeSelf - whether to include this nodenodeTest - testpublic boolean isChildOrderingRequired()
EvalContextisChildOrderingRequired in class EvalContextpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer 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.