public class FirstItemExpressionAdjunct extends FilteringAdjunct implements FeedMaker
Constructor and Description |
---|
FirstItemExpressionAdjunct() |
Modifier and Type | Method and Description |
---|---|
PostureAndSweep |
computeStreamability(boolean allowExtensions,
ContextItemStaticInfo contextInfo,
List<String> reasons)
Get the posture and sweep of this expression as defined in the W3C streamability specifications.
|
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, getFeedMaker, setConfiguration, setExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeItemFeed
public PostureAndSweep computeStreamability(boolean allowExtensions, ContextItemStaticInfo contextInfo, List<String> reasons)
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 thispublic 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 occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.