public class InitialContext extends EvalContext
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.
|
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, toStringpublic InitialContext(EvalContext parentContext)
parentContext - parent contextpublic Pointer getSingleNodePointer()
EvalContextgetSingleNodePointer in class EvalContextpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer in class EvalContextpublic 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 EvalContextCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.