java.io.Serializable
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, CallableExpression
, InstructionInfo
, org.xml.sax.Locator
public class Collection extends SystemFunction implements CallableExpression
CollectionURIResolver
. For the effect of the default
system-supplied CollectionURIResolver, see StandardCollectionURIResolver
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
EMPTY_COLLECTION |
URI representing a collection that is always empty, regardless of any collection URI resolver
|
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 |
---|---|
Collection() |
Modifier and Type | Method | Description |
---|---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet) |
Add a representation of this expression to a PathMap.
|
SequenceIterator |
call(SequenceIterator[] arguments,
XPathContext context) |
Evaluate the expression
|
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<Item> |
iterate(XPathContext context) |
Iterate over the contents of the collection
|
Expression |
preEvaluate(ExpressionVisitor visitor) |
preEvaluate: this method suppresses compile-time evaluation by doing nothing
|
getArguments
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, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addContextDocumentArgument, addDocToPathMap, computeCardinality, copy, equals, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getOperation, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault
public static java.lang.String EMPTY_COLLECTION
public java.lang.String getStaticBaseURI()
public void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
visitor
- the expression visitorXPathException
- if the arguments are incorrectpublic int computeSpecialProperties()
SystemFunction
computeSpecialProperties
in class SystemFunction
public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate
in class FunctionCall
visitor
- an expression visitorpublic PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap
in class Expression
pathMap
- the PathMap to which the expression should be addedpathMapNodeSet
- the PathMapNodeSet to which the paths embodied in this expression should be addedpublic SequenceIterator<Item> iterate(XPathContext context) throws XPathException
iterate
in class Expression
context
- the dynamic contextXPathException
public 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 instructionpublic 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