ExpressionContextpublic class AttributeContext extends EvalContext
| Modifier and Type | Field | Description |
|---|---|---|
private NodePointer |
currentNodePointer |
|
private NodeIterator |
iterator |
|
private NodeTest |
nodeTest |
|
private boolean |
setStarted |
|
private static QName |
WILDCARD |
parentContext, position, rootContext| Constructor | Description |
|---|---|
AttributeContext(EvalContext parentContext,
NodeTest nodeTest) |
Create a new AttributeContext.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, getSingleNodePointer, getValue, hasNext, isChildOrderingRequired, next, nextSet, remove, sortPointers, toStringprivate static final QName WILDCARD
private NodeTest nodeTest
private boolean setStarted
private NodeIterator iterator
private NodePointer currentNodePointer
public AttributeContext(EvalContext parentContext, NodeTest nodeTest)
parentContext - represents the previous step on the pathnodeTest - is the name of the attribute we are looking forpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer in class EvalContextpublic void reset()
EvalContextreset in class EvalContextpublic boolean setPosition(int position)
EvalContextsetPosition in class EvalContextposition - to setpublic boolean nextNode()
EvalContextnextNode in class EvalContext