public class SingletonIntersectExpression extends VennExpression
operand0, operand1, operatorEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, 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(ExpressionVisitor visitor)
Simplify the expression
|
Expression |
typeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextInfo)
Type-check the expression
|
computeCardinality, computeSpecialProperties, equals, gatherComponents, getExpressionCompiler, getItemType, getStreamingAdjunct, hashCode, operands, toPattern, unorderedexplain, explainExtraAttributes, getArguments, getOperands, getOperator, isAssociative, isCommutative, isInverse, promote, replaceOperand, setFlattened, toShortString, toStringaddToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getHostLanguage, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setLocationId, setPostureAndSweep, staticTypeCheck, suppressValidation, toStreamingPattern, 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(ExpressionVisitor visitor) throws XPathException
simplify in class Expressionvisitor - an expression visitorXPathException - if an error is discovered during expression
rewritingpublic Expression typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo) throws XPathException
typeCheck in class VennExpressionvisitor - an expression visitorcontextInfo - Information available statically about the context item: whether it is (possibly)
absent; its static type; its streaming posture.XPathException - if an error is discovered during this phase
(typically a type error)public 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 BinaryExpressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.