|
|||||||||||
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.SelfContext
EvalContext that returns the current node from the parent context if the test succeeds.
Field Summary | |
private NodePointer |
nodePointer
|
private NodeTest |
nodeTest
|
private boolean |
startedSet
|
Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
parentContext, position, rootContext |
Constructor Summary | |
SelfContext(EvalContext parentContext,
NodeTest nodeTest)
|
Method Summary | |
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. |
Methods inherited from class org.apache.commons.jxpath.ri.EvalContext |
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, getValue, hasNext, isChildOrderingRequired, next, nextSet, remove, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private NodeTest nodeTest
private boolean startedSet
private NodePointer nodePointer
Constructor Detail |
public SelfContext(EvalContext parentContext, NodeTest nodeTest)
Method Detail |
public Pointer getSingleNodePointer()
EvalContext
getSingleNodePointer
in class EvalContext
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
public void reset()
EvalContext
reset
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |