public class SelfContext extends EvalContext
| Modifier and Type | Field and Description |
|---|---|
private NodePointer |
nodePointer |
private NodeTest |
nodeTest |
private boolean |
startedSet |
parentContext, position, rootContext| Constructor and Description |
|---|
SelfContext(EvalContext parentContext,
NodeTest nodeTest)
Create a new SelfContext.
|
| Modifier and Type | Method and Description |
|---|---|
NodePointer |
getCurrentNodePointer()
Returns the current context node.
|
Pointer |
getSingleNodePointer()
Returns the first encountered Pointer that matches the current
context's criteria.
|
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, getValue, hasNext, isChildOrderingRequired, next, nextSet, remove, sortPointers, toStringprivate NodeTest nodeTest
private boolean startedSet
private NodePointer nodePointer
public SelfContext(EvalContext parentContext, NodeTest nodeTest)
parentContext - EvalContextnodeTest - guardpublic Pointer getSingleNodePointer()
EvalContextgetSingleNodePointer in class EvalContextpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer in class EvalContextpublic boolean nextNode()
EvalContextnextNode in class EvalContextpublic void reset()
EvalContextreset in class EvalContextpublic boolean setPosition(int position)
EvalContextsetPosition in class EvalContextposition - to set