public class AccumulatorRegistryEE extends AccumulatorRegistry
accumulatorsByName
Constructor and Description |
---|
AccumulatorRegistryEE() |
Modifier and Type | Method and Description |
---|---|
Sequence<?> |
getStreamingAccumulatorValue(NodeInfo node,
Accumulator accumulator,
AccumulatorFn.Phase phase)
Get the run-time value of a streamed accumulator
|
static void |
registerSelectedAccumulators(WatchManager watchManager,
java.util.Set<? extends Accumulator> accumulators)
Register all the rules for all the accumulators with a WatchManager handling events for a streaming
pass over a source document
|
addAccumulator, getAccumulator, getAllAccumulators, getUsedAccumulators
public static void registerSelectedAccumulators(WatchManager watchManager, java.util.Set<? extends Accumulator> accumulators) throws XPathException
watchManager
- the WatchManager with which the rules are to be registeredXPathException
- if an error occurspublic Sequence<?> getStreamingAccumulatorValue(NodeInfo node, Accumulator accumulator, AccumulatorFn.Phase phase) throws XPathException
getStreamingAccumulatorValue
in class AccumulatorRegistry
node
- the context nodeaccumulator
- the accumulator whose value is requiredphase
- pre-descent or post-descentXPathException
- if a dynamic error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.