|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xpath.Step
Field Summary | |
protected int |
axis
|
protected boolean |
inPredicate
|
protected BrokerPool |
pool
|
protected java.util.ArrayList |
predicates
|
protected NodeTest |
test
|
Constructor Summary | |
Step(BrokerPool pool,
int axis)
|
|
Step(BrokerPool pool,
int axis,
NodeTest test)
|
Method Summary | |
void |
addPredicate(Expression expr)
|
abstract Value |
eval(DocumentSet docs,
NodeSet context,
NodeProxy node)
Evaluate the expression represented by this object. |
int |
getAxis()
|
java.lang.String |
pprint()
Return a readable representation of this expression. |
DocumentSet |
preselect(DocumentSet in_docs)
Determine the documents, taken from in_docs, for which this expression will possibly yield a result. |
int |
returnsType()
The type of value, this expression returns. |
void |
setAxis(int axis)
|
void |
setInPredicate(boolean inPredicate)
This method is called to inform the expression object that it is executed inside an XPath predicate. |
void |
setTest(NodeTest test)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int axis
protected BrokerPool pool
protected java.util.ArrayList predicates
protected NodeTest test
protected boolean inPredicate
Constructor Detail |
public Step(BrokerPool pool, int axis)
public Step(BrokerPool pool, int axis, NodeTest test)
Method Detail |
public void addPredicate(Expression expr)
public abstract Value eval(DocumentSet docs, NodeSet context, NodeProxy node)
Expression
eval
in interface Expression
docs
- the set of documents all nodes belong to.context
- the node-set which defines the current context node-set.node
- a single node, taken from context. This defines the node,
the expression should work on.public int getAxis()
public java.lang.String pprint()
Expression
pprint
in interface Expression
public DocumentSet preselect(DocumentSet in_docs)
Expression
preselect
in interface Expression
public int returnsType()
Expression
returnsType
in interface Expression
public void setAxis(int axis)
public void setTest(NodeTest test)
public void setInPredicate(boolean inPredicate)
Expression
setInPredicate
in interface Expression
inPredicate
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |