| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.BinaryExpression net.sf.saxon.expr.GeneralComparison
GeneralComparison | public class GeneralComparison extends BinaryExpression (Code) | | GeneralComparison: a boolean expression that compares two expressions
for equals, not-equals, greater-than or less-than. This implements the operators
=, !=, <, >, etc. This implementation is not used when in backwards-compatible mode
|
Constructor Summary | |
public | GeneralComparison(Expression p0, int op, Expression p1) Create a relational expression 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) | | |
GeneralComparison | public GeneralComparison(Expression p0, int op, Expression p1)(Code) | | Create a relational expression 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 |
|
|