public class SingletonComparison extends BinaryExpression implements ComparisonExpression
operand0, operand1, operatorlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
SingletonComparison(Expression p1,
int operator,
Expression p2) |
| Modifier and Type | Method and Description |
|---|---|
int |
computeCardinality()
Determine the static cardinality.
|
boolean |
convertsUntypedToOther()
Determine whether untyped atomic values should be converted to the type of the other operand
|
protected java.lang.String |
displayOperator() |
boolean |
effectiveBooleanValue(XPathContext context)
Evaluate the expression in a boolean context
|
Item |
evaluateItem(XPathContext context)
Evaluate the expression in a given context
|
AtomicComparer |
getAtomicComparer()
Get the AtomicComparer used to compare atomic values.
|
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the expression
|
int |
getSingletonOperator()
Get the primitive (singleton) operator used: one of Token.FEQ, Token.FNE, Token.FLT, Token.FGT,
Token.FLE, Token.FGE
|
void |
setComparator(AtomicComparer comp,
XPathContext context) |
computeSpecialProperties, display, equals, getOperands, getOperator, hashCode, isAssociative, isCommutative, isInverse, iterateSubExpressions, optimize, promote, replaceSubExpression, simplify, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetOperandspublic SingletonComparison(Expression p1, int operator, Expression p2)
public void setComparator(AtomicComparer comp, XPathContext context)
public AtomicComparer getAtomicComparer()
ComparisonExpressiongetAtomicComparer in interface ComparisonExpressionpublic int getSingletonOperator()
ComparisonExpressiongetSingletonOperator in interface ComparisonExpressionpublic boolean convertsUntypedToOther()
convertsUntypedToOther in interface ComparisonExpressionpublic int computeCardinality()
computeCardinality in class BinaryExpressionpublic ItemType getItemType(TypeHierarchy th)
getItemType in interface Expressionth - public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ComputedExpressioncontext - the given context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class ComputedExpressioncontext - the given context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionprotected java.lang.String displayOperator()
displayOperator in class BinaryExpression