public class DefaultRuleDispatcher extends Object implements SemanticDispatcher
| Constructor and Description |
|---|
DefaultRuleDispatcher(SemanticNodeProcessor defaultProc,
Map<SemanticRule,SemanticNodeProcessor> rules,
NodeProcessorCtx procCtx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
dispatch(Node nd,
Stack<Node> ndStack,
Object... nodeOutputs)
Dispatcher function.
|
public DefaultRuleDispatcher(SemanticNodeProcessor defaultProc, Map<SemanticRule,SemanticNodeProcessor> 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 Dispatcherdispatch in interface SemanticDispatchernd - 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 © 2022 The Apache Software Foundation. All rights reserved.