public class CollectionFn extends SystemFunction implements Callable
CollectionFinder
. For the effect of the default
system-supplied CollectionURIResolver, see StandardCollectionFinder
Modifier and Type | Field and Description |
---|---|
static ResourceCollection |
EMPTY_COLLECTION
An empty collection
|
static java.lang.String |
EMPTY_COLLECTION_URI
URI representing a collection that is always empty, regardless of any collection URI resolver
|
Constructor and Description |
---|
CollectionFn() |
Modifier and Type | Method and Description |
---|---|
Sequence<?> |
call(XPathContext context,
Sequence[] arguments)
Dynamic call on collection() function
|
int |
getSpecialProperties(Expression[] arguments)
Determine the special properties of this function.
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argumentArray, getGenre
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public static java.lang.String EMPTY_COLLECTION_URI
public static final ResourceCollection EMPTY_COLLECTION
public int getSpecialProperties(Expression[] arguments)
SystemFunction
getSpecialProperties
in class SystemFunction
arguments
- the actual arguments supplied in a call to the functionpublic Sequence<?> call(XPathContext context, Sequence[] arguments) throws XPathException
call
in interface Callable
call
in interface Function
context
- the dynamic evaluation contextarguments
- the values of the arguments, supplied as Sequences.XPathException
- if a dynamic error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.