org.exist.xquery
Class ValueComparison
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.BinaryOp
org.exist.xquery.GeneralComparison
org.exist.xquery.ValueComparison
- All Implemented Interfaces:
- CompiledXQuery, Expression
- public class ValueComparison
- extends GeneralComparison
- Author:
- Wolfgang Meier (wolfgang@exist-db.org)
| Methods inherited from class org.exist.xquery.GeneralComparison |
analyze, compareAtomic, compareValues, eval, getCollator, getDependencies, nodeSetCompare, quickNodeSetCompare, resetState, returnsType, setCollation, simplify, switchOperands |
| Methods inherited from class org.exist.xquery.PathExpr |
add, add, addPath, addPredicate, dump, getASTNode, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceLastExpression, reset, setContext, setPrimaryAxis, setSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValueComparison
public ValueComparison(XQueryContext context,
int relation)
- Parameters:
context - relation -
ValueComparison
public ValueComparison(XQueryContext context,
Expression left,
Expression right,
int relation)
- Parameters:
context - left - right - relation -
genericCompare
protected Sequence genericCompare(Sequence contextSequence,
Item contextItem)
throws XPathException
- Description copied from class:
GeneralComparison
- Generic, slow implementation. Applied if none of the possible
optimizations can be used.
- Overrides:
genericCompare in class GeneralComparison
- Parameters:
contextSequence - contextItem -
- Returns:
-
- Throws:
XPathException
nodeSetCompare
protected Sequence nodeSetCompare(NodeSet nodes,
Sequence contextSequence)
throws XPathException
- Overrides:
nodeSetCompare in class GeneralComparison
- Throws:
XPathException
dump
public void dump(ExpressionDumper dumper)
- Description copied from interface:
Expression
- Write a diagnostic dump of the expression to the passed
ExpressionDumper.
- Specified by:
dump in interface Expression- Overrides:
dump in class GeneralComparison
toString
public java.lang.String toString()
- Overrides:
toString in class GeneralComparison
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.