|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.BinaryExpression
net.sf.saxon.expr.IdentityComparison
IdentityComparison: a boolean expression that compares two nodes for equals, not-equals, greater-than or less-than based on identity and document ordering
Field Summary |
Fields inherited from class net.sf.saxon.expr.BinaryExpression |
operand0, operand1, operator |
Fields inherited from class net.sf.saxon.expr.ComputedExpression |
locationId, staticProperties |
Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
IdentityComparison(Expression p1,
int op,
Expression p2)
Create an identity comparison identifying the two operands and the operator |
Method Summary | |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the expression. |
Item |
evaluateItem(XPathContext context)
Evaluate the expression |
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the expression |
void |
setGenerateIdEmulation(boolean flag)
Set flag to indicate different empty-sequence behavior when emulating comparison of two generate-id's |
Expression |
typeCheck(StaticContext env,
ItemType contextItemType)
Type-check the expression |
Methods inherited from class net.sf.saxon.expr.BinaryExpression |
computeCardinality, computeSpecialProperties, display, displayOperator, equals, getOperands, getOperator, hashCode, isAssociative, isCommutative, isInverse, iterateSubExpressions, optimize, promote, simplify |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IdentityComparison(Expression p1, int op, Expression p2)
p1
- the left-hand operandop
- the operator, as a token returned by the Tokenizer (e.g. Token.LT)p2
- the right-hand operandMethod Detail |
public void setGenerateIdEmulation(boolean flag)
public Expression typeCheck(StaticContext env, ItemType contextItemType) throws XPathException
typeCheck
in interface Expression
typeCheck
in class BinaryExpression
XPathException
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class ComputedExpression
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
ComputedExpression
effectiveBooleanValue
in interface Expression
effectiveBooleanValue
in class ComputedExpression
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic ItemType getItemType(TypeHierarchy th)
th
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |