|
||||||||||
| 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.AttributeContext
public class AttributeContext
EvalContext that walks the "attribute::" axis.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
|---|
parentContext, position, rootContext |
| Constructor Summary | |
|---|---|
AttributeContext(EvalContext parentContext,
NodeTest nodeTest)
Create a new AttributeContext. |
|
| Method Summary | |
|---|---|
NodePointer |
getCurrentNodePointer()
Returns the current context node. |
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, 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 AttributeContext(EvalContext parentContext,
NodeTest nodeTest)
parentContext - represents the previous step on the pathnodeTest - is the name of the attribute we are looking for| Method Detail |
|---|
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer in class EvalContextpublic void reset()
EvalContext
reset in class EvalContextpublic boolean setPosition(int position)
EvalContext
setPosition in class EvalContextposition - to set
public boolean nextNode()
EvalContext
nextNode in class EvalContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||