| 
 | |||||||||
| 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 | 
|---|
| 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 | 
|---|
| EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD | 
| Constructor Summary | |
|---|---|
| Collection() | |
| Method Summary | |
|---|---|
|  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,
                   String baseURI,
                   XPathContext context,
                   SourceLocator locator)Return the results of iterating over the results returned by the CollectionURIResolver. | 
|  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 | 
| Methods inherited from class net.sf.saxon.functions.SystemFunction | 
|---|
| addContextDocumentArgument, addDocToPathMap, computeCardinality, copy, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault | 
| Methods inherited from class net.sf.saxon.expr.FunctionCall | 
|---|
| addExternalFunctionCallToPathMap, checkArgumentCount, equals, 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 | 
| Constructor Detail | 
|---|
public Collection()
| Method Detail | 
|---|
public String getStaticBaseURI()
public void checkArguments(ExpressionVisitor visitor)
                    throws XPathException
SystemFunction
checkArguments in class SystemFunctionvisitor - the expression visitor
XPathExceptionpublic 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 - 
public SequenceIterator iterate(XPathContext context)
                         throws XPathException
iterate in interface SequenceIterableiterate 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
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||