net.sf.saxon.functions
Class Collection
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Collection
- All Implemented Interfaces:
- Serializable, SourceLocator, Container, EvaluableItem, SequenceIterable, InstructionInfoProvider
public class Collection
- extends SystemFunction
Implement the fn:collection() function. This is responsible for calling the
registered CollectionURIResolver
. For the effect of the default
system-supplied CollectionURIResolver, see StandardCollectionURIResolver
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.expr.FunctionCall |
getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, typeCheck |
Methods inherited from class net.sf.saxon.expr.Expression |
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getContainingProcedure, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation |
Collection
public Collection()
getStaticBaseURI
public String getStaticBaseURI()
checkArguments
public void checkArguments(StaticContext env)
throws XPathException
- Description copied from class:
SystemFunction
- Method called during static type checking
- Overrides:
checkArguments
in class SystemFunction
- Throws:
XPathException
preEvaluate
public Expression preEvaluate(StaticContext env)
- preEvaluate: this method suppresses compile-time evaluation by doing nothing
- Overrides:
preEvaluate
in class FunctionCall
iterate
public SequenceIterator iterate(XPathContext context)
throws XPathException
- Iterate over the contents of the collection
- Specified by:
iterate
in interface SequenceIterable
- Overrides:
iterate
in class Expression
- Parameters:
context
- the dynamic context
- Returns:
- an iterator, whose items will always be nodes (typically but not necessarily document nodes)
- Throws:
XPathException
getResolverResults
public static SequenceIterator getResolverResults(SequenceIterator iter,
String baseURI,
XPathContext context,
SourceLocator locator)
Copyright (C) Michael H. Kay. All rights reserved.