net.sf.saxon.expr
public class SingletonComparison extends BinaryExpression
Constructor Summary | |
---|---|
SingletonComparison(Expression p1, int operator, Expression p2) |
Method Summary | |
---|---|
int | computeCardinality()
Determine the static cardinality. |
protected String | displayOperator() |
boolean | effectiveBooleanValue(XPathContext context)
Evaluate the expression in a boolean context |
Item | evaluateItem(XPathContext context)
Evaluate the expression in a given context |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression |
void | setComparator(Comparator comp, XPathContext context) |
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
Returns: Type.BOOLEAN