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