|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Collection
public class Collection
Implement the fn:collection() function. This is responsible for calling the
registered CollectionURIResolver. For the effect of the default
system-supplied CollectionURIResolver, see StandardCollectionURIResolver
| Field Summary | |
|---|---|
static String |
EMPTY_COLLECTION
URI representing a collection that is always empty, regardless of any collection URI resolver |
| 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.Expression |
|---|
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 |
| Constructor Summary | |
|---|---|
Collection()
|
|
| Method Summary | |
|---|---|
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,
String baseURI,
XPathContext context,
SourceLocator locator)
Return the results of iterating over the results returned by the CollectionURIResolver. |
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 |
| Methods inherited from class net.sf.saxon.functions.SystemFunction |
|---|
addContextDocumentArgument, addDocToPathMap, computeCardinality, copy, equals, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getOperation, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault |
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
|---|
addExternalFunctionCallToPathMap, checkArgumentCount, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.expr.CallableExpression |
|---|
getArguments |
| Field Detail |
|---|
public static String EMPTY_COLLECTION
| Constructor Detail |
|---|
public Collection()
| Method Detail |
|---|
public String getStaticBaseURI()
public void checkArguments(ExpressionVisitor visitor)
throws XPathException
SystemFunction
checkArguments in class SystemFunctionvisitor - the expression visitor
XPathException - if the arguments are incorrectpublic int computeSpecialProperties()
SystemFunction
computeSpecialProperties in class SystemFunctionpublic Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate in class FunctionCallvisitor - an expression visitor
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap in class ExpressionpathMap - the PathMap to which the expression should be addedpathMapNodeSet - the PathMapNodeSet to which the paths embodied in this expression should be added
public SequenceIterator<Item> iterate(XPathContext context)
throws XPathException
iterate in class Expressioncontext - the dynamic context
XPathException
public static SequenceIterator getResolverResults(SequenceIterator iter,
String baseURI,
XPathContext context,
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
public SequenceIterator call(SequenceIterator[] arguments,
XPathContext context)
throws XPathException
CallableExpression
call in interface CallableExpressionarguments - the values of the arguments, supplied as SequenceIteratorscontext - the dynamic evaluation context
XPathException - if a dynamic error occurs during the evaluation of the expression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||