java.io.Serializable
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, CallableExpression
, InstructionInfo
, org.xml.sax.Locator
public class DistinctValues extends CollatingFunction implements CallableExpression
Modifier and Type | Class | Description |
---|---|---|
static class |
DistinctValues.DistinctIterator |
Iterator class to return the distinct values in a sequence
|
stringCollator
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD
argument
operation
Constructor | Description |
---|---|
DistinctValues() |
Modifier and Type | Method | Description |
---|---|---|
SequenceIterator |
call(SequenceIterator[] arguments,
XPathContext context) |
Evaluate the expression
|
void |
checkArguments(ExpressionVisitor visitor) |
Method called during static type checking
|
AtomicComparer |
getAtomicComparer() |
Get the AtomicComparer allocated at compile time.
|
SequenceIterator |
iterate(XPathContext context) |
Evaluate the function to return an iteration of selected values or nodes.
|
AtomicComparer |
makeAtomicComparer(XPathContext context) |
Get the AtomicComparer, creating it if it was not allocated at compile time.
|
getArguments
copy, equals, expandCollationURI, getAbsoluteCollationURI, getAtomicComparer, getCollator, getExpressionBaseURI, getStringCollator
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, hasVariableBinding, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSameFocusSubExpressions, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeError
addExternalFunctionCallToPathMap, checkArgumentCount, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addContextDocumentArgument, addDocToPathMap, computeCardinality, computeSpecialProperties, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getOperation, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault
public void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunction
checkArguments
in class CollatingFunction
visitor
- the expression visitorXPathException
- if the arguments are incorrectpublic AtomicComparer getAtomicComparer()
public AtomicComparer makeAtomicComparer(XPathContext context) throws XPathException
XPathException
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in class Expression
context
- supplies the context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionpublic SequenceIterator call(SequenceIterator[] arguments, XPathContext context) throws XPathException
CallableExpression
call
in interface CallableExpression
arguments
- the values of the arguments, supplied as SequenceIteratorscontext
- the dynamic evaluation contextXPathException
- if a dynamic error occurs during the evaluation of the expression