public class AttributeContext extends EvalContext
parentContext, position, rootContext
Constructor and Description |
---|
AttributeContext(EvalContext parentContext,
NodeTest nodeTest)
Create a new AttributeContext.
|
Modifier and Type | Method and 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, toString
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()
EvalContext
getCurrentNodePointer
in class EvalContext
public void reset()
EvalContext
reset
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
position
- to setpublic boolean nextNode()
EvalContext
nextNode
in class EvalContext
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.