|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jxpath.ri.EvalContext org.apache.commons.jxpath.ri.axes.InitialContext
A single-set EvalContext that provides access to the current node of the parent context and nothing else. It does not pass the iteration on to the parent context.
Field Summary | |
private boolean |
collection
|
private NodePointer |
nodePointer
|
private boolean |
started
|
private boolean |
startedSet
|
Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
parentContext, position, rootContext |
Constructor Summary | |
InitialContext(EvalContext parentContext)
|
Method Summary | |
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. |
Methods inherited from class org.apache.commons.jxpath.ri.EvalContext |
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, hasNext, isChildOrderingRequired, next, remove, reset, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean startedSet
private boolean started
private boolean collection
private NodePointer nodePointer
Constructor Detail |
public InitialContext(EvalContext parentContext)
Method Detail |
public Pointer getSingleNodePointer()
EvalContext
getSingleNodePointer
in class EvalContext
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public java.lang.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
public boolean nextSet()
EvalContext
nextSet
in class EvalContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |