public class FilterExpressionAdjunct extends FilteringAdjunct
Constructor and Description |
---|
FilterExpressionAdjunct() |
Modifier and Type | Method and Description |
---|---|
PostureAndSweep |
computeStreamability(boolean allowExtensions,
ContextItemStaticInfo contextInfo,
List<String> reasons)
Compute the posture and sweep of this expression as defined in the W3C streamability specifications.
|
FeedMaker |
getFeedMaker(int arg)
Get a FeedMaker, a factory class that creates a Feed to evaluate this expression
in streaming mode.
|
FilteringFeed.Filter |
makeFilter(XPathContext context)
Make a filter for the event stream
|
Pattern |
toStreamingPattern(Configuration config)
Convert this expression to a streaming pattern (a pattern used internally to match nodes during
push processing of an event stream)
|
makeItemFeed
getWatchMaker, makeTransmissionFlow
getConfiguration, getDefaultFeedMaker, getExpression, setConfiguration, setExpression
public PostureAndSweep computeStreamability(boolean allowExtensions, ContextItemStaticInfo contextInfo, List<String> reasons)
StreamingAdjunct
computeStreamability
in class StreamingAdjunct
allowExtensions
- if false, the definition of "guaranteed streamability" in the
W3C specification is used. If true, Saxon extensions are permitted, which make somecontextInfo
- Information about the context item type and posturereasons
- the caller may supply a list, in which case the implementation may add to this; the
contents are human-readable messages explaining why the expression is not streamable.public Pattern toStreamingPattern(Configuration config)
toStreamingPattern
in class StreamingAdjunct
config
- the Saxon configurationpublic FilteringFeed.Filter makeFilter(XPathContext context) throws XPathException
makeFilter
in class FilteringAdjunct
context
- the XPath dyamic contextXPathException
- if a dynamic evaluation error occurspublic FeedMaker getFeedMaker(int arg) throws XPathException
StreamingAdjunct
getFeedMaker
in class StreamingAdjunct
arg
- identifies the argument with respect to which the expression is to be inverted:
usually 0 to indicate the first argument is the value that is streamed. Argument numbering
is the same as the sequence of arguments/operands returned by the method Expression.operands()
XPathException
- in the event of a failureCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.