|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.BinaryExpression net.sf.saxon.expr.VennExpression net.sf.saxon.expr.SingletonIntersectExpression
public class SingletonIntersectExpression
This expression is equivalent to (A intersect B) in the case where A has cardinality zero-or-one. This is handled as a special case because the standard sort-merge algorithm involves an unnecessary sort on B.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.BinaryExpression |
---|
operand0, operand1, operator |
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD |
Constructor Summary | |
---|---|
SingletonIntersectExpression(Expression p1,
int op,
Expression p2)
Special case of an intersect expression where the first argument is a singleton |
Method Summary | |
---|---|
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. |
Methods inherited from class net.sf.saxon.expr.VennExpression |
---|
computeCardinality, computeSpecialProperties, equals, gatherComponents, getItemType, hashCode, optimize, simplify, typeCheck |
Methods inherited from class net.sf.saxon.expr.BinaryExpression |
---|
explain, explainExtraAttributes, getArguments, getOperands, getOperator, isAssociative, isCommutative, isInverse, iterateSubExpressions, promote, replaceSubExpression, setFlattened, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingletonIntersectExpression(Expression p1, int op, Expression p2)
p1
- the first argument, always a singletonop
- the operator, always Token.INTERSECTp2
- the second argumentMethod Detail |
---|
public Expression copy()
copy
in class VennExpression
public SequenceIterator iterate(XPathContext c) throws XPathException
iterate
in class VennExpression
c
- The context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic boolean effectiveBooleanValue(XPathContext c) throws XPathException
effectiveBooleanValue
in class VennExpression
c
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic String getExpressionName()
VennExpression
getExpressionName
in class VennExpression
protected String displayOperator()
displayOperator
in class BinaryExpression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |