|
|||||||||
| 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
public final class 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 |
|---|
operands, operator |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
|---|
lineNumber, NO_ARGUMENTS, staticProperties |
| Constructor Summary | |
|---|---|
IdentityComparison(Expression p1,
int op,
Expression p2)
Create an identity comparison identifying the two operands and the operator |
|
| Method Summary | |
|---|---|
Expression |
analyze(StaticContext env)
Type-check the expression |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the expression. |
Item |
evaluateItem(XPathContext context)
Evaluate the expression |
ItemType |
getItemType()
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 |
| Methods inherited from class net.sf.saxon.expr.BinaryExpression |
|---|
computeCardinality, display, displayOperator, equals, getSubExpressions, hashCode, isCommutative, promote, setDetails, simplify |
| Methods inherited from class net.sf.saxon.expr.ComputedExpression |
|---|
computeDependencies, computeSpecialProperties, computeStaticProperties, dynamicError, evaluateAsString, getCardinality, getDependencies, getIntrinsicDependencies, getLineNumber, getSpecialProperties, iterate, markTailFunctionCalls, setLineNumber, typeError |
| 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. Tokenizer.LT)p2 - the right-hand operand| Method Detail |
|---|
public void setGenerateIdEmulation(boolean flag)
public Expression analyze(StaticContext env)
throws XPathException
analyze in interface Expressionanalyze in class BinaryExpressionenv - the static context of the expression
XPathException - if an error is discovered during this phase
(typically a type error)
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ComputedExpressioncontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
expression
public boolean effectiveBooleanValue(XPathContext context)
throws XPathException
ComputedExpression
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class ComputedExpressioncontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
expressionpublic ItemType getItemType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||