addToPathMap
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap. The PathMap captures a map of the nodes visited
by an expression in a source tree.
- addToPathMap in interface Expression
pathMap
- the PathMap to which the expression should be addedpathMapNodeSet
-
- the pathMapNode representing the focus established by this expression, in the case where this
expression is the first operand of a path expression or filter expression
computeSpecialProperties
public int computeSpecialProperties()
Get the static properties of this expression (other than its type). The result is
bit-signficant. These properties are used for optimizations. In general, if
property bit is set, it is true, but if it is unset, the value is unknown.
- computeSpecialProperties in interface SystemFunction
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface SystemFunction
- the copy of the original expression
getStaticBaseURI
public String getStaticBaseURI()
Get the base URI from the static context
makeDoc
public static NodeInfo makeDoc(String href,
String baseURI,
XPathContext c,
SourceLocator locator)
throws XPathException
Supporting routine to load one external document given a URI (href) and a baseURI. This is used
in the normal case when a document is loaded at run-time (that is, when a Controller is available)
href
- the relative URIbaseURI
- the base URIc
- the dynamic XPath contextlocator
- used to identify the location of the instruction in event of error
- the root of the constructed document, or the selected element within the document
if a fragment identifier was supplied
preLoadDoc
public static NodeInfo preLoadDoc(String href,
String baseURI,
Configuration config,
SourceLocator locator)
throws XPathException
Supporting routine to load one external document given a URI (href) and a baseURI. This is used
when the document is pre-loaded at compile time.
href
- the relative URI. This must not contain a fragment identifierbaseURI
- the base URIconfig
- the Saxon configurationlocator
- used to identify the location of the instruction in event of error
- the root of the constructed document, or the selected element within the document
if a fragment identifier was supplied
sendDoc
public static void sendDoc(String href,
String baseURL,
XPathContext c,
SourceLocator locator,
Receiver out)
throws XPathException
Supporting routine to push one external document given a URI (href) and a baseURI to a given Receiver.
This method cannot handle fragment identifiers
href
- the relative URIbaseURL
- the base URIc
- the XPath dynamic contextlocator
- used to identify the lcoation of the instruction in case of errorout
- the destination where the document is to be sent
sendDocuments
public void sendDocuments(XPathContext context,
Receiver out)
throws XPathException
Copy the documents identified by this expression to a given Receiver. This method is used only when it is
known that the documents are being copied, because there is then no problem about node identity.
context
- the XPath dynamic contextout
- the destination to which the documents will be sent