net.sf.saxon.s9api
public class XQueryExecutable extends Object
An XQueryExecutable is immutable, and therefore thread-safe. It is simplest to load a new XQueryEvaluator each time the query is to be run. However, the XQueryEvaluator is serially reusable within a single thread.
An XQueryExecutable is created by using one of the compile
methods on the
XQueryCompiler class.
Since: 9.0
Field Summary | |
---|---|
XQueryExpression | exp |
Processor | processor |
Constructor Summary | |
---|---|
protected | XQueryExecutable(Processor processor, XQueryExpression exp) |
Method Summary | |
---|---|
OccurrenceIndicator | getResultCardinality()
Get the statically-determined cardinality of the result of the query. |
ItemType | getResultItemType()
Get the ItemType of the items in the result of the query, as determined by static analysis. |
XQueryExpression | getUnderlyingCompiledQuery()
Get the underlying implementation object representing the compiled stylesheet. |
boolean | isUpdateQuery()
Ask whether the query is an updating query: that is, whether it returns a Pending Update List
rather than a Value. |
XQueryEvaluator | load()
Load the stylesheet to prepare it for execution. |
Returns: the statically-determined cardinality of the result of the query
Since: 9.1
Returns: the statically-determined ItemType of the result of the query
Since: 9.1
Returns: the underlying implementation of the compiled stylesheet
Returns: true if the query is an updating query, false if not
Since: 9.1
Returns: An XsltTransformer. The returned XsltTransformer can be used to set up the dynamic context for stylesheet evaluation, and to run the stylesheet.