net.sf.saxon.expr
public class SingletonComparison extends BinaryExpression implements ComparisonExpression
| Constructor Summary | |
|---|---|
| SingletonComparison(Expression p1, int operator, Expression p2, boolean checkTypes)
Create a singleton comparison - that is, a comparison between two singleton (0:1) sequences
using the general comparison semantics | |
| Method Summary | |
|---|---|
| int | computeCardinality()
Determine the static cardinality. |
| boolean | convertsUntypedToOther()
Determine whether untyped atomic values should be converted to the type of the other operand |
| 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) |
| AtomicComparer | getAtomicComparer() |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the expression |
| int | getSingletonOperator() |
| boolean | needsRuntimeComparabilityCheck()
Determine whether a run-time check is needed to check that the types of the arguments
are comparable |
| void | setAtomicComparer(AtomicComparer comp) |
Parameters: p1 the first operand operator the operator p2 the second operand checkTypes true if a run-time check for comparability of the operand types is needed
Returns: true if untyped values should be converted to the type of the other operand, false if they should be converted to strings.
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: true if a run-time check is needed