public class GeneralComparisonEE extends GeneralComparison
comparer, comparisonCardinality, doneWarnings, MANY_TO_MANY, MANY_TO_ONE, needsRuntimeCheck, ONE_TO_ONE, singletonOperatoroperatorEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD| Constructor and Description |
|---|
GeneralComparisonEE(Expression p0,
int op,
Expression p1)
Create a relational expression identifying the two operands and the operator
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
copy()
Copy an expression.
|
boolean |
effectiveBooleanValue(XPathContext context)
Evaluate the expression in a boolean context
|
protected GeneralComparison |
getInverseComparison() |
Expression |
optimize(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Optimize the expression
|
String |
tag()
Get the element name used to identify this expression in exported expression format
|
call, compare, computeCardinality, convertsUntypedToOther, evaluateItem, evaluateManyToMany, explainExtraAttributes, getAtomicComparer, getComparisonCardinality, getCorrespondingSingletonOperator, getExpressionCompiler, getExpressionName, getItemType, getNamespaceResolver, getSingletonOperator, getStreamingAdjunct, needsRuntimeCheck, quickCompare, setAtomicComparer, setComparisonCardinality, setNeedsRuntimeCheck, simplify, typeCheckcomputeSpecialProperties, displayOperator, equals, export, getImplementationMethod, getLhs, getLhsExpression, getOperandRole, getOperator, getRhs, getRhsExpression, hashCode, isAssociative, isCommutative, isInverse, operands, setFlattened, setLhsExpression, setRhsExpression, toShortString, toStringaddToPathMap, adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getPosture, getPostureAndSweepIfKnown, getProperties, getProperty, getRetainedStaticContext, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isCallOnSystemFunction, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, optimizeForType, process, promote, promoteChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setFiltered, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeCheckChildren, typeError, unorderedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLhs, getLhsExpression, getRhs, getRhsExpressionpublic GeneralComparisonEE(Expression p0, int op, Expression p1)
p0 - the left-hand operandop - the operator, as a token returned by the Tokenizer (e.g. Token.LT)p1 - the right-hand operandpublic Expression optimize(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
GeneralComparisonoptimize in class GeneralComparisonvisitor - an expression visitorcontextItemType - the static type of "." at the point where this expression is invoked.
The parameter is set to null if it is known statically that the context item will be undefined.
If the type of the context item is not known statically, the argument is set to
Type.ITEM_TYPEXPathException - if an error is discovered during this phase
(typically a type error)public Expression copy()
GeneralComparisoncopy in class GeneralComparisonpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
effectiveBooleanValue in class GeneralComparisoncontext - the given context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionprotected GeneralComparison getInverseComparison()
getInverseComparison in class GeneralComparisonpublic String tag()
GeneralComparisontag in class GeneralComparisonCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.