|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xml.xpath.BinaryExpr
com.novell.xml.xpath.BooleanExpr
com.novell.xml.xpath.ComparisonExpr
Base class for EqualityExpr and RelationalExpr implementations
| Field Summary |
| Fields inherited from class com.novell.xml.xpath.BinaryExpr |
lhs, rhs |
| Constructor Summary | |
protected |
ComparisonExpr(Expression lhs,
Expression rhs)
|
| Method Summary | |
protected boolean |
compareBooleans(boolean lhs,
boolean rhs,
int compare)
Compare two booleans according to XPath rules for RelationalExpr and EqualityExpr |
protected boolean |
compareNodeSetAndNumber(NodeSet lhs,
double rhs,
int compare)
Compare a node-set and a number according to XPath rules for RelationalExpr and EqualityExpr |
protected boolean |
compareNodeSetAndString(NodeSet lhs,
String rhs,
int compare)
Compare a node-set and a string according to XPath rules for RelationalExpr and EqualityExpr |
protected boolean |
compareNodeSets(NodeSet lhs,
NodeSet rhs,
int compare)
Compare two node sets according to XPath rules for RelationalExpr and EqualityExpr |
protected boolean |
compareNumbers(double lhs,
double rhs,
int compare)
Compare two numbers according to XPath rules for RelationalExpr and EqualityExpr |
protected boolean |
compareOperands(ExpressionValue lhs,
ExpressionValue rhs,
int compare)
Compare two operandsaccording to XPath rules for RelationalExpr and EqualityExpr |
protected boolean |
compareStrings(String lhs,
String rhs,
int compare)
Compare two strings according to XPath rules for RelationalExpr and EqualityExpr |
| Methods inherited from class com.novell.xml.xpath.BooleanExpr |
getResultType |
| Methods inherited from class com.novell.xml.xpath.BinaryExpr |
dump, isConstant, registerForReset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.novell.xml.xpath.Expression |
dump, evaluate, getResultType, isConstant, registerForReset |
| Constructor Detail |
protected ComparisonExpr(Expression lhs,
Expression rhs)
| Method Detail |
protected boolean compareOperands(ExpressionValue lhs,
ExpressionValue rhs,
int compare)
throws XPathEvaluationException
lhs - The left-hand operandrhs - The right-hand operandcompare - The desired comparison to find:
-3 lhs not equal to rhs '!='
-2 lhs less than rhs '<'
-1 lhs less than or equals to rhs '<='
0 lhs equal to rhs '='
1 lhs greater than or equal to rhs '>'
2 lhs greater than rhs '>='
3 lhs not equal to rhs '!='
XPathEvaluationException
protected boolean compareNodeSets(NodeSet lhs,
NodeSet rhs,
int compare)
lhs - The left-hand operandrhs - The right-hand operandcompare - The desired comparison to find:
-2 lhs lexically less than rhs
-1 lhs lexically less than or equals to rhs
0 lhs lexically equal to rhs
1 lhs lexically greater than or equal to rhs
2 lhs lexically greater than rhs
protected boolean compareNodeSetAndString(NodeSet lhs,
String rhs,
int compare)
lhs - The left-hand operand node-setrhs - The right-hand operand stringcompare - The desired comparison to find:
-2 lhs lexically less than rhs
-1 lhs lexically less than or equals to rhs
0 lhs lexically equal to rhs
1 lhs lexically greater than or equal to rhs
2 lhs lexically greater than rhs
protected boolean compareNodeSetAndNumber(NodeSet lhs,
double rhs,
int compare)
lhs - The left-hand operand node-setrhs - The right-hand operand numbercompare - The desired comparison to find:
-2 lhs numerically less than rhs
-1 lhs numerically less than or equals to rhs
0 lhs numerically equal to rhs
1 lhs numerically greater than or equal to rhs
2 lhs numerically greater than rhs
protected boolean compareBooleans(boolean lhs,
boolean rhs,
int compare)
lhs - The left-hand operandrhs - The right-hand operandcompare - The desired comparison to find:
-3 lhs numerically not equal to rhs
-2 lhs numerically less than rhs
-1 lhs numerically less than or equals to rhs
0 lhs numerically equal to rhs
1 lhs numerically greater than or equal to rhs
2 lhs numerically greater than rhs
3 lhs numerically not equal to rhs
protected boolean compareNumbers(double lhs,
double rhs,
int compare)
lhs - The left-hand operandrhs - The right-hand operandcompare - The desired comparison to find:
-3 lhs numerically not equal to rhs
-2 lhs numerically less than rhs
-1 lhs numerically less than or equals to rhs
0 lhs numerically equal to rhs
1 lhs numerically greater than or equal to rhs
2 lhs numerically greater than rhs
3 lhs numerically not equal to rhs
protected boolean compareStrings(String lhs,
String rhs,
int compare)
lhs - The left-hand operandrhs - The right-hand operandcompare - The desired comparison to find:
-3 lhs numerically not equal to rhs
-2 lhs numerically less than rhs
-1 lhs numerically less than or equals to rhs
0 lhs numerically equal to rhs
1 lhs numerically greater than or equal to rhs
2 lhs numerically greater than rhs
3 lhs numerically not equal to rhs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||