net.sf.saxon.expr
Class GeneralComparison10
- EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
public class GeneralComparison10
GeneralComparison10: a boolean expression that compares two expressions
for equals, not-equals, greater-than or less-than. This implements the operators
=, !=, <, >, etc. This version of the class implements general comparisons
in XPath 1.0 backwards compatibility mode, as defined in the Oct 2004 revision
of the specifications.
computeCardinality, computeSpecialProperties, displayOperator, equals, explain, getOperands, getOperator, hashCode, isAssociative, isCommutative, isInverse, iterateSubExpressions, optimize, promote, replaceSubExpression, setFlattened, simplify, toString, typeCheck |
addToPathMap, adoptChildExpression, checkPermittedContents, computeCardinality, computeDependencies, computeSpecialProperties, computeStaticProperties, copy, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, explain, explain, findParentOf, getCardinality, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getItemType, getLineNumber, getLocationId, getLocationProvider, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, iterate, iterateEvents, iterateSubExpressions, markTailFunctionCalls, optimize, process, promote, replaceSubExpression, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, simplify, staticTypeCheck, suppressValidation, toString, typeCheck, typeError |
singletonOperator
protected int singletonOperator
GeneralComparison10
public GeneralComparison10(Expression p0,
int op,
Expression p1) Create a general comparison identifying the two operands and the operator
p0 - the left-hand operandop - the operator, as a token returned by the Tokenizer (e.g. Token.LT)p1 - the right-hand operand
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface Expression
- the copy of the original expression
effectiveBooleanValue
public boolean effectiveBooleanValue(XPathContext context)
throws XPathException Evaluate the expression in a boolean context
- effectiveBooleanValue in interface Expression
context - the given context for evaluation
- a boolean representing the result of the numeric comparison of the two operands