net.sf.saxon.expr
public class GeneralComparison10 extends BinaryExpression
Field Summary | |
---|---|
protected AtomicComparer | comparer |
protected int | singletonOperator |
Constructor Summary | |
---|---|
GeneralComparison10(Expression p0, int op, Expression p1)
Create a general comparison identifying the two operands and the operator |
Method Summary | |
---|---|
int | computeCardinality()
Determine the static cardinality. |
Expression | copy()
Copy an expression. |
boolean | effectiveBooleanValue(XPathContext context)
Evaluate the expression in a boolean context |
Item | evaluateItem(XPathContext context)
Evaluate the expression in a given context |
protected void | explainExtraAttributes(ExpressionPresenter out) |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression |
Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType)
Optimize the expression |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression |
Parameters: p0 the left-hand operand op the operator, as a token returned by the Tokenizer (e.g. Token.LT) p1 the right-hand operand
Returns: the copy of the original expression
Parameters: context the given context for evaluation
Returns: a boolean representing the result of the numeric comparison of the two operands
Parameters: context the given context for evaluation
Returns: a BooleanValue representing the result of the numeric comparison of the two operands
Parameters: th the type hierarchy cache
Returns: Type.BOOLEAN
Returns: the checked expression
Returns: the checked expression