public class NodeSetContext extends EvalContext
NodeSet
.parentContext, position, rootContext
Constructor and Description |
---|
NodeSetContext(EvalContext parentContext,
NodeSet nodeSet)
Create a new NodeSetContext.
|
Modifier and Type | Method and Description |
---|---|
NodePointer |
getCurrentNodePointer()
Returns the current context node.
|
NodeSet |
getNodeSet()
Returns the list of all Pointers in this context for all positions
of the parent contexts.
|
boolean |
nextNode()
Returns true if there is another object in the current set.
|
boolean |
nextSet()
Returns true if there is another sets of objects to interate over.
|
boolean |
setPosition(int position)
Moves the current position to the specified index.
|
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getPosition, getRootContext, getSingleNodePointer, getValue, hasNext, isChildOrderingRequired, next, remove, reset, sortPointers, toString
public NodeSetContext(EvalContext parentContext, NodeSet nodeSet)
parentContext
- parent contextnodeSet
- associated NodeSetpublic NodeSet getNodeSet()
EvalContext
getNodeSet
in class EvalContext
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
position
- to setpublic boolean nextSet()
EvalContext
nextSet
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.