|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xpath.PathExpr
org.exist.xpath.BinaryOp
org.exist.xpath.OpEquals
compare two operands by =, <, > etc..
Field Summary | |
protected FunContains |
containsExpr
|
protected int |
relation
|
protected NodeSet |
temp
|
Fields inherited from class org.exist.xpath.PathExpr |
docs, inPredicate, keepVirtual, pool, steps |
Constructor Summary | |
OpEquals(BrokerPool pool,
Expression left,
Expression right,
int relation)
Constructor for the OpEquals object |
|
OpEquals(BrokerPool pool,
int relation)
Constructor for the OpEquals object |
Method Summary | |
protected Value |
booleanCompare(Expression left,
Expression right,
DocumentSet docs,
NodeSet context,
NodeProxy node)
Left argument is boolean: Convert right argument to a bool. |
protected boolean |
cmpBooleans(boolean left,
boolean right)
Description of the Method |
protected boolean |
cmpNumbers(double left,
double right)
Description of the Method |
protected boolean |
compareStrings(java.lang.String left,
java.lang.String right)
Description of the Method |
Value |
eval(DocumentSet docs,
NodeSet context,
NodeProxy node)
Compare left and right statement. |
protected Value |
nodeSetCompare(Expression left,
Expression right,
DocumentSet docs,
NodeSet context,
NodeProxy node)
Left argument is a node set. |
protected Value |
numberCompare(Expression left,
Expression right,
DocumentSet docs,
NodeSet context,
NodeProxy node)
Left argument is a number: Convert right argument to a number for every node in context. |
java.lang.String |
pprint()
Description of the Method |
DocumentSet |
preselect(DocumentSet in_docs)
check relevant documents. |
int |
returnsType()
Description of the Method |
protected Value |
stringCompare(Expression left,
Expression right,
DocumentSet docs,
NodeSet context,
NodeProxy node)
|
protected void |
switchOperands()
|
Methods inherited from class org.exist.xpath.BinaryOp |
getLeft, getRight |
Methods inherited from class org.exist.xpath.PathExpr |
add, add, addDocument, addPath, addPredicate, getDocumentSet, getExpression, getLength, preselect, setDocumentSet, setFirstExpression, setInPredicate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int relation
protected NodeSet temp
protected FunContains containsExpr
Constructor Detail |
public OpEquals(BrokerPool pool, int relation)
relation
- Description of the Parameterpublic OpEquals(BrokerPool pool, Expression left, Expression right, int relation)
left
- Description of the Parameterright
- Description of the Parameterrelation
- Description of the ParameterMethod Detail |
protected Value booleanCompare(Expression left, Expression right, DocumentSet docs, NodeSet context, NodeProxy node)
left
- Description of the Parameterright
- Description of the Parameterdocs
- Description of the Parametercontext
- Description of the Parameternode
- Description of the Parameter
protected boolean cmpBooleans(boolean left, boolean right)
left
- Description of the Parameterright
- Description of the Parameter
protected boolean cmpNumbers(double left, double right)
left
- Description of the Parameterright
- Description of the Parameter
protected boolean compareStrings(java.lang.String left, java.lang.String right)
left
- Description of the Parameterright
- Description of the Parameter
public Value eval(DocumentSet docs, NodeSet context, NodeProxy node)
eval
in interface Expression
eval
in class BinaryOp
docs
- Description of the Parametercontext
- Description of the Parameternode
- Description of the Parameter
protected Value nodeSetCompare(Expression left, Expression right, DocumentSet docs, NodeSet context, NodeProxy node)
left
- Description of the Parameterright
- Description of the Parameterdocs
- Description of the Parametercontext
- Description of the Parameternode
- Description of the Parameter
protected Value numberCompare(Expression left, Expression right, DocumentSet docs, NodeSet context, NodeProxy node)
left
- Description of the Parameterright
- Description of the Parameterdocs
- Description of the Parametercontext
- Description of the Parameternode
- Description of the Parameter
public java.lang.String pprint()
pprint
in interface Expression
pprint
in class BinaryOp
public DocumentSet preselect(DocumentSet in_docs)
preselect
in interface Expression
preselect
in class BinaryOp
in_docs
- Description of the Parameter
public int returnsType()
returnsType
in interface Expression
returnsType
in class BinaryOp
protected Value stringCompare(Expression left, Expression right, DocumentSet docs, NodeSet context, NodeProxy node)
protected void switchOperands()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |