public class SingletonIntersectExpression extends VennExpression
operatorEFFECTIVE_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 |
|---|
SingletonIntersectExpression(Expression p1,
int op,
Expression p2)
Special case of an intersect expression where the first argument is a singleton
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
copy()
Copy an expression.
|
protected String |
displayOperator()
Display the operator used by this binary expression
|
boolean |
effectiveBooleanValue(XPathContext c)
Get the effective boolean value.
|
String |
getExpressionName()
Get a name identifying the kind of expression, in terms meaningful to a user.
|
SequenceIterator |
iterate(XPathContext c)
Iterate over the value of the expression.
|
Expression |
optimize(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Perform optimisation of an expression and its subexpressions.
|
Expression |
simplify()
Simplify the expression
|
protected String |
tag()
Get the element name used to identify this expression in exported expression format
|
computeCardinality, computeSpecialProperties, equals, gatherComponents, getExpressionCompiler, getImplementationMethod, getItemType, getOperandRole, getStreamingAdjunct, hashCode, toPattern, typeCheck, unorderedexplainExtraAttributes, export, getLhs, getLhsExpression, getOperator, getRhs, getRhsExpression, isAssociative, isCommutative, isInverse, operands, setFlattened, setLhsExpression, setRhsExpression, toShortString, toStringaddToPathMap, adoptChildExpression, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, evaluateItem, 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, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, optimizeForType, process, promote, promoteChildren, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setFiltered, setLocation, setParentExpression, setPostureAndSweep, setRetainedStaticContext, setRetainedStaticContextLocally, setStaticProperty, simplifyChildren, staticTypeCheck, suppressValidation, toStreamingPattern, typeCheckChildren, typeErrorpublic SingletonIntersectExpression(Expression p1, int op, Expression p2)
p1 - the first argument, always a singletonop - the operator, always Token.INTERSECTp2 - the second argumentpublic Expression simplify() throws XPathException
simplify in class VennExpressionXPathException - if an error is discovered during expression
rewritingpublic Expression optimize(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
This method is called after all references to functions and variables have been resolved to the declaration of the function or variable, and after all type checking has been done.
optimize in class VennExpressionvisitor - 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()
copy in class VennExpressionpublic SequenceIterator iterate(XPathContext c) throws XPathException
iterate in class VennExpressionc - The context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic boolean effectiveBooleanValue(XPathContext c) throws XPathException
effectiveBooleanValue in class VennExpressionc - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic String getExpressionName()
VennExpressiongetExpressionName in class VennExpressionprotected String displayOperator()
displayOperator in class BinaryExpressionprotected String tag()
tag in class VennExpressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.