public class SingletonComparison extends BinaryExpression
operand0, operand1, operator
locationId, staticProperties
EVALUATE_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, typeCheck
adoptChildExpression, 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, typeError
public SingletonComparison(Expression p1, int operator, Expression p2)
public void setComparator(Comparator comp, XPathContext context)
public int computeCardinality()
computeCardinality
in class BinaryExpression
public ItemType getItemType(TypeHierarchy th)
th
- public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class ComputedExpression
context
- the given context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
effectiveBooleanValue
in interface Expression
effectiveBooleanValue
in class ComputedExpression
context
- the given context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionprotected String displayOperator()
displayOperator
in class BinaryExpression