|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xpath.PathExpr
Field Summary | |
protected DocumentSet |
docs
|
protected boolean |
inPredicate
|
protected boolean |
keepVirtual
|
protected static org.apache.log4j.Logger |
LOG
|
protected BrokerPool |
pool
|
protected java.util.LinkedList |
steps
|
Constructor Summary | |
PathExpr(BrokerPool pool)
|
Method Summary | |
void |
add(Expression s)
|
void |
add(PathExpr path)
|
void |
addDocument(DocumentImpl doc)
|
void |
addPath(PathExpr path)
|
void |
addPredicate(Predicate pred)
|
Value |
eval(DocumentSet docs,
NodeSet context,
NodeProxy node)
Evaluate the expression represented by this object. |
DocumentSet |
getDocumentSet()
|
Expression |
getExpression(int pos)
|
int |
getLength()
|
java.lang.String |
pprint()
Return a readable representation of this expression. |
DocumentSet |
preselect()
|
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 |
setDocumentSet(DocumentSet docs)
|
void |
setFirstExpression(Expression s)
|
void |
setInPredicate(boolean inPredicate)
This method is called to inform the expression object that it is executed inside an XPath predicate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger LOG
protected DocumentSet docs
protected boolean keepVirtual
protected BrokerPool pool
protected java.util.LinkedList steps
protected boolean inPredicate
Constructor Detail |
public PathExpr(BrokerPool pool)
Method Detail |
public void add(Expression s)
public void add(PathExpr path)
public void addDocument(DocumentImpl doc)
public void addPath(PathExpr path)
public void addPredicate(Predicate pred)
public 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 DocumentSet getDocumentSet()
public Expression getExpression(int pos)
public int getLength()
public java.lang.String pprint()
Expression
pprint
in interface Expression
public DocumentSet preselect()
public DocumentSet preselect(DocumentSet in_docs)
Expression
preselect
in interface Expression
public int returnsType()
Expression
returnsType
in interface Expression
public void setDocumentSet(DocumentSet docs)
public void setFirstExpression(Expression s)
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 |