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, toString
public InitialContext(EvalContext parentContext)
parentContext
- parent contextpublic Pointer getSingleNodePointer()
EvalContext
getSingleNodePointer
in class EvalContext
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public Object getValue()
EvalContext
getValue
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
position
- to setpublic boolean nextSet()
EvalContext
nextSet
in class EvalContext
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.