ExpressionContextpublic class PredicateContext extends EvalContext
| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
done |
|
private PropertyPointer |
dynamicPropertyPointer |
|
private Expression |
expression |
|
private Expression |
nameTestExpression |
parentContext, position, rootContext| Constructor | Description |
|---|---|
PredicateContext(EvalContext parentContext,
Expression expression) |
Create a new PredicateContext.
|
| 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.
|
boolean |
nextSet() |
Returns true if there is another sets of objects to interate over.
|
void |
reset() |
Sets current position = 0, which is the pre-iteration state.
|
boolean |
setPosition(int position) |
Moves the current position to the specified index.
|
private boolean |
setPositionStandard(int position) |
Basic setPosition
|
private boolean |
setupDynamicPropertyPointer() |
Used for an optimized access to dynamic properties using the
"map[@name = 'name']" syntax
|
getContextNodeList, getContextNodePointer, getCurrentPosition, getDocumentOrder, getJXPathContext, getNodeSet, getPosition, getRootContext, getSingleNodePointer, getValue, hasNext, isChildOrderingRequired, next, remove, sortPointers, toStringprivate Expression expression
private boolean done
private Expression nameTestExpression
private PropertyPointer dynamicPropertyPointer
public PredicateContext(EvalContext parentContext, Expression expression)
parentContext - parent contextexpression - compiled Expressionpublic boolean nextNode()
EvalContextnextNode in class EvalContextprivate boolean setupDynamicPropertyPointer()
public boolean setPosition(int position)
EvalContextsetPosition in class EvalContextposition - to setpublic NodePointer getCurrentNodePointer()
EvalContextgetCurrentNodePointer in class EvalContextpublic void reset()
EvalContextreset in class EvalContextpublic boolean nextSet()
EvalContextnextSet in class EvalContextprivate boolean setPositionStandard(int position)
position - to set