public class Collection extends SystemFunction
CollectionURIResolver. For the effect of the default
system-supplied CollectionURIResolver, see StandardCollectionURIResolveroperationargumentEVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD| Constructor and Description |
|---|
Collection() |
| Modifier and Type | Method and Description |
|---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap.
|
void |
checkArguments(ExpressionVisitor visitor)
Method called during static type checking
|
int |
computeSpecialProperties()
Determine the special properties of this expression.
|
static SequenceIterator |
getResolverResults(SequenceIterator iter,
java.lang.String baseURI,
XPathContext context,
javax.xml.transform.SourceLocator locator)
Return the results of iterating over the results returned by the CollectionURIResolver.
|
java.lang.String |
getStaticBaseURI() |
SequenceIterator |
iterate(XPathContext context)
Iterate over the contents of the collection
|
Expression |
preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
|
addContextDocumentArgument, addDocToPathMap, computeCardinality, copy, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefaultaddExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheckadoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSameFocusSubExpressions, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeErrorpublic java.lang.String getStaticBaseURI()
public void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunctioncheckArguments in class SystemFunctionvisitor - the expression visitorXPathExceptionpublic int computeSpecialProperties()
SystemFunctioncomputeSpecialProperties in class SystemFunctionpublic Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate in class FunctionCallvisitor - an expression visitorpublic PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap in class ExpressionpathMap - the PathMap to which the expression should be addedpathMapNodeSet - public SequenceIterator iterate(XPathContext context) throws XPathException
iterate in interface SequenceIterableiterate in class Expressioncontext - the dynamic contextXPathExceptionpublic static SequenceIterator getResolverResults(SequenceIterator iter, java.lang.String baseURI, XPathContext context, javax.xml.transform.SourceLocator locator)
Note, this method is called by generated code
iter - iterator over the results of the CollectionURIResolverbaseURI - the base URIcontext - the dynamic contextlocator - location of the instruction