Package net.sf.saxon.functions
Class Collection
- java.lang.Object
-
- net.sf.saxon.expr.ComputedExpression
-
- net.sf.saxon.expr.FunctionCall
-
- net.sf.saxon.functions.SystemFunction
-
- net.sf.saxon.functions.Collection
-
- All Implemented Interfaces:
java.io.Serializable,javax.xml.transform.SourceLocator,Container,Expression,InstructionInfoProvider
public class Collection extends SystemFunction
Implement the fn:collection() function. This is responsible for calling the registeredCollectionURIResolver. For the effect of the default system-supplied CollectionURIResolver, seeStandardCollectionURIResolver- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.functions.SystemFunction
operation
-
Fields inherited from class net.sf.saxon.expr.FunctionCall
argument
-
Fields inherited from class net.sf.saxon.expr.ComputedExpression
locationId, staticProperties
-
Fields inherited from interface net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
-
-
Constructor Summary
Constructors Constructor Description Collection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckArguments(StaticContext env)Method called during static type checkingSequenceIteratoriterate(XPathContext context)Iterate over the contents of the collectionExpressionpreEvaluate(StaticContext env)preEvaluate: this method suppresses compile-time evaluation by doing nothing-
Methods inherited from class net.sf.saxon.functions.SystemFunction
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
-
Methods inherited from class net.sf.saxon.expr.FunctionCall
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
-
Methods inherited from class net.sf.saxon.expr.ComputedExpression
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
-
-
-
-
Method Detail
-
checkArguments
public void checkArguments(StaticContext env) throws XPathException
Description copied from class:SystemFunctionMethod called during static type checking- Overrides:
checkArgumentsin classSystemFunction- Throws:
XPathException
-
preEvaluate
public Expression preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing- Overrides:
preEvaluatein classFunctionCall
-
iterate
public SequenceIterator iterate(XPathContext context) throws XPathException
Iterate over the contents of the collection- Specified by:
iteratein interfaceExpression- Overrides:
iteratein classComputedExpression- Parameters:
context- the dynamic context- Returns:
- an iterator, whose items will always be nodes (typically but not necessarily document nodes)
- Throws:
XPathException
-
-