Package net.sf.saxon.functions
Class DistinctValues
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.CollatingFunction
net.sf.saxon.functions.DistinctValues
- All Implemented Interfaces:
Serializable,SourceLocator,LocationProvider,SaxonLocator,EvaluableItem,SequenceIterable,InstructionInfo,Locator
The XPath 2.0 distinct-values() function
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIterator class to return the distinct values in a sequence -
Field Summary
Fields inherited from class net.sf.saxon.functions.CollatingFunction
stringCollatorFields inherited from class net.sf.saxon.functions.SystemFunction
operationFields inherited from class net.sf.saxon.expr.FunctionCall
argumentFields inherited from class net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckArguments(ExpressionVisitor visitor) Method called during static type checkingGet the AtomicComparer allocated at compile time.iterate(XPathContext context) Evaluate the function to return an iteration of selected values or nodes.Methods inherited from class net.sf.saxon.functions.CollatingFunction
copy, getAtomicComparer, getCollator, getExpressionBaseURI, getStringCollatorMethods inherited from class net.sf.saxon.functions.SystemFunction
addContextDocumentArgument, addDocToPathMap, computeCardinality, computeSpecialProperties, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefaultMethods inherited from class net.sf.saxon.expr.FunctionCall
addExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheckMethods inherited from class net.sf.saxon.expr.Expression
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeError
-
Constructor Details
-
DistinctValues
public DistinctValues()
-
-
Method Details
-
checkArguments
Description copied from class:SystemFunctionMethod called during static type checking- Overrides:
checkArgumentsin classCollatingFunction- Parameters:
visitor- the expression visitor- Throws:
XPathException
-
getAtomicComparer
Get the AtomicComparer allocated at compile time.- Returns:
- the AtomicComparer if one has been allocated at compile time; return null if the collation is not known until run-time
-
iterate
Evaluate the function to return an iteration of selected values or nodes.- Specified by:
iteratein interfaceSequenceIterable- Overrides:
iteratein classExpression- Parameters:
context- supplies the context for evaluation- Returns:
- a SequenceIterator that can be used to iterate over the result of the expression
- Throws:
XPathException- if any dynamic error occurs evaluating the expression
-