net.sf.saxon.expr
Class SingletonComparison
- ComparisonExpression, EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
public class SingletonComparison
Class to handle comparisons of singletons. Unlike ValueComparison, this class
converts untyped atomic values to the type of the other argument, and returns false
(rather than ()) if either operand is ().
computeCardinality , computeSpecialProperties , displayOperator , equals , explain , getOperands , getOperator , hashCode , isAssociative , isCommutative , isInverse , iterateSubExpressions , optimize , promote , replaceSubExpression , setFlattened , simplify , toString , typeCheck |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
convertsUntypedToOther
public boolean convertsUntypedToOther()
Determine whether untyped atomic values should be converted to the type of the other operand
- convertsUntypedToOther in interface ComparisonExpression
- true if untyped values should be converted to the type of the other operand, false if they
should be converted to strings.
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface Expression
- the copy of the original expression
effectiveBooleanValue
public boolean effectiveBooleanValue(XPathContext context)
throws XPathException
Evaluate the expression in a boolean context
- effectiveBooleanValue in interface Expression
context
- the given context for evaluation
- a boolean representing the result of the numeric comparison of the two operands
getSingletonOperator
public int getSingletonOperator()
Get the primitive (singleton) operator used: one of Token.FEQ, Token.FNE, Token.FLT, Token.FGT,
Token.FLE, Token.FGE
- getSingletonOperator in interface ComparisonExpression