public class SingletonComparison extends BinaryExpression
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.
|
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) |
computeSpecialProperties, display, equals, getOperands, getOperator, hashCode, isAssociative, isCommutative, isInverse, iterateSubExpressions, optimize, promote, simplify, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, 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, suppressValidation, typeError, typeErrorpublic SingletonComparison(Expression p1, int operator, Expression p2)
public void setComparator(Comparator comp, XPathContext context)
public int computeCardinality()
computeCardinality in class BinaryExpressionpublic ItemType getItemType(TypeHierarchy th)
th - 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 String displayOperator()
displayOperator in class BinaryExpression