public class DefaultRuleDispatcher extends Object implements Dispatcher
| Constructor and Description |
|---|
DefaultRuleDispatcher(NodeProcessor defaultProc,
Map<Rule,NodeProcessor> rules,
NodeProcessorCtx procCtx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
dispatch(Node nd,
Stack<Node> ndStack,
Object... nodeOutputs)
Dispatcher function.
|
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 Dispatchernd - 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.SemanticExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.