| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.BinaryExpression net.sf.saxon.expr.GeneralComparison10
GeneralComparison10 | public class GeneralComparison10 extends BinaryExpression (Code) | | GeneralComparison10: a boolean expression that compares two expressions
for equals, not-equals, greater-than or less-than. This implements the operators
=, !=, <, >, etc. This version of the class implements general comparisons
in XPath 1.0 backwards compatibility mode, as defined in the Oct 2004 revision
of the specifications.
|
Constructor Summary | |
public | GeneralComparison10(Expression p0, int op, Expression p1) Create a general comparison identifying the two operands and the operator
Parameters: p0 - the left-hand operand Parameters: op - the operator, as a token returned by the Tokenizer (e.g. |
singletonOperator | protected int singletonOperator(Code) | | |
GeneralComparison10 | public GeneralComparison10(Expression p0, int op, Expression p1)(Code) | | Create a general comparison identifying the two operands and the operator
Parameters: p0 - the left-hand operand Parameters: op - the operator, as a token returned by the Tokenizer (e.g. Token.LT) Parameters: p1 - the right-hand operand |
computeCardinality | public int computeCardinality()(Code) | | Determine the static cardinality. Returns [1..1]
|
effectiveBooleanValue | public boolean effectiveBooleanValue(XPathContext context) throws XPathException(Code) | | Evaluate the expression in a boolean context
Parameters: context - the given context for evaluation a boolean representing the result of the numeric comparison of the two operands |
evaluateItem | public Item evaluateItem(XPathContext context) throws XPathException(Code) | | Evaluate the expression in a given context
Parameters: context - the given context for evaluation a BooleanValue representing the result of the numeric comparison of the two operands |
|
|