|
||||||||||
| 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.InitialContext
public class 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 |
|---|
| Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
|---|
parentContext, position, rootContext |
| Constructor Summary | |
|---|---|
InitialContext(EvalContext parentContext)
Create a new InitialContext. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.commons.jxpath.ri.EvalContext |
|---|
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, hasNext, isChildOrderingRequired, next, remove, reset, sortPointers, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InitialContext(EvalContext parentContext)
parentContext - parent context| Method Detail |
|---|
public Pointer getSingleNodePointer()
EvalContext
getSingleNodePointer in class EvalContextpublic NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer in class EvalContextpublic Object getValue()
EvalContext
getValue in class EvalContextpublic boolean nextNode()
EvalContext
nextNode in class EvalContextpublic boolean setPosition(int position)
EvalContext
setPosition in class EvalContextposition - to set
public boolean nextSet()
EvalContext
nextSet in class EvalContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||