public class DefaultRuleDispatcher extends Object implements Dispatcher
Constructor and Description |
---|
DefaultRuleDispatcher(NodeProcessor defaultProc,
Map<Rule,NodeProcessor> rules,
NodeProcessorCtx procCtx)
Constructor.
|
public DefaultRuleDispatcher(NodeProcessor defaultProc, Map<Rule,NodeProcessor> rules, NodeProcessorCtx procCtx)
defaultProc
- default processor to be fired if no rule matchesrules
- operator processor that handles actual processing of the nodeprocCtx
- operator processor context, which is opaque to the dispatcherpublic Object dispatch(Node nd, Stack<Node> ndStack, Object... nodeOutputs) throws SemanticException
dispatch
in interface Dispatcher
nd
- operator to processndStack
- the operators encountered so farnodeOutputs
- The argument list of outputs from processing other nodes that are
passed to this dispatcher from the walker.SemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.