Package net.sf.saxon.expr
Interface ComparisonExpression
-
- All Known Implementing Classes:
CompareToConstant,CompareToIntegerConstant,CompareToStringConstant,EquivalenceComparison,GeneralComparison,GeneralComparison20,GeneralComparisonEE,ValueComparison
public interface ComparisonExpressionInterface implemented by expressions that perform a comparison
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanconvertsUntypedToOther()Determine whether untyped atomic values should be converted to the type of the other operandAtomicComparergetAtomicComparer()Get the AtomicComparer used to compare atomic values.OperandgetLhs()Get the left-hand operand of the comparisonExpressiongetLhsExpression()Get the left-hand expressionOperandgetRhs()Get the right-hand operand of the comparisonExpressiongetRhsExpression()Get the right-hand expressionintgetSingletonOperator()Get the primitive (singleton) operator used: one of Token.FEQ, Token.FNE, Token.FLT, Token.FGT, Token.FLE, Token.FGE
-
-
-
Method Detail
-
getAtomicComparer
AtomicComparer getAtomicComparer()
Get the AtomicComparer used to compare atomic values. This encapsulates any collation that is used- Returns:
- the comparer
-
getSingletonOperator
int getSingletonOperator()
Get the primitive (singleton) operator used: one of Token.FEQ, Token.FNE, Token.FLT, Token.FGT, Token.FLE, Token.FGE- Returns:
- the operator, as defined in class
Token
-
getLhs
Operand getLhs()
Get the left-hand operand of the comparison- Returns:
- the first operand
-
getRhs
Operand getRhs()
Get the right-hand operand of the comparison- Returns:
- the second operand
-
getLhsExpression
Expression getLhsExpression()
Get the left-hand expression- Returns:
- the first operand expression
-
getRhsExpression
Expression getRhsExpression()
Get the right-hand expression- Returns:
- the second operand expression
-
convertsUntypedToOther
boolean convertsUntypedToOther()
Determine whether untyped atomic values should be converted to the type of the other operand- Returns:
- true if untyped values should be converted to the type of the other operand, false if they should be converted to strings.
-
-