public class InitialContext extends EvalContext
| Modifier and Type | Field and Description |
|---|---|
private boolean |
collection |
private NodePointer |
nodePointer |
private boolean |
started |
parentContext, position, rootContext| Constructor and Description |
|---|
InitialContext(EvalContext parentContext)
Create a new InitialContext.
|
| 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.
|
java.lang.Object |
getValue()
Typically returns the NodeSet by calling getNodeSet(),
but will be overridden for contexts that more naturally produce
individual values, e.g.
|
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, getNodeSet, getPosition, getRootContext, hasNext, isChildOrderingRequired, next, remove, reset, sortPointers, toStringprivate boolean started
private boolean collection
private NodePointer nodePointer
public InitialContext(EvalContext parentContext)
parentContext - parent contextpublic Pointer getSingleNodePointer()
EvalContextgetSingleNodePointer in class EvalContextpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer in class EvalContextpublic java.lang.Object getValue()
EvalContextgetValue in class EvalContextpublic boolean nextNode()
EvalContextnextNode in class EvalContextpublic boolean setPosition(int position)
EvalContextsetPosition in class EvalContextposition - to setpublic boolean nextSet()
EvalContextnextSet in class EvalContext