|
|||||||||||
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.DescendantContext
An EvalContext that walks the "descendant::" and "descendant-or-self::" axes.
Field Summary | |
private NodePointer |
currentNodePointer
|
private static NodeTest |
ELEMENT_NODE_TEST
|
private boolean |
includeSelf
|
private NodeTest |
nodeTest
|
private boolean |
setStarted
|
private java.util.Stack |
stack
|
Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
parentContext, position, rootContext |
Constructor Summary | |
DescendantContext(EvalContext parentContext,
boolean includeSelf,
NodeTest nodeTest)
|
Method Summary | |
NodePointer |
getCurrentNodePointer()
Returns the current context node. |
boolean |
isChildOrderingRequired()
Even if this context has the natural ordering and therefore does not require collecting and sorting all nodes prior to returning them, such operation may be required for any child context. |
private boolean |
isRecursive()
Checks if we are reentering a bean we have already seen and if so returns true to prevent infinite recursion. |
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, getSingleNodePointer, getValue, hasNext, 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 setStarted
private java.util.Stack stack
private NodePointer currentNodePointer
private boolean includeSelf
private static final NodeTest ELEMENT_NODE_TEST
Constructor Detail |
public DescendantContext(EvalContext parentContext, boolean includeSelf, NodeTest nodeTest)
Method Detail |
public boolean isChildOrderingRequired()
EvalContext
isChildOrderingRequired
in class EvalContext
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public void reset()
EvalContext
reset
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
private boolean isRecursive()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |