|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jxpath.ri.EvalContext
org.apache.commons.jxpath.ri.axes.SelfContext
public class SelfContext
EvalContext that returns the current node from the parent context if the test succeeds.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
|---|
parentContext, position, rootContext |
| Constructor Summary | |
|---|---|
SelfContext(EvalContext parentContext,
NodeTest nodeTest)
Create a new SelfContext. |
|
| 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, sortPointers, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SelfContext(EvalContext parentContext,
NodeTest nodeTest)
parentContext - EvalContextnodeTest - guard| Method Detail |
|---|
public Pointer getSingleNodePointer()
EvalContext
getSingleNodePointer in class EvalContextpublic NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer in class EvalContextpublic boolean nextNode()
EvalContext
nextNode in class EvalContextpublic void reset()
EvalContext
reset in class EvalContextpublic boolean setPosition(int position)
EvalContext
setPosition in class EvalContextposition - to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||