public class CostLessRuleDispatcher extends Object implements SemanticDispatcher
| Constructor and Description |
|---|
CostLessRuleDispatcher(SemanticNodeProcessor defaultProc,
com.google.common.collect.SetMultimap<Integer,SemanticNodeProcessor> rules,
NodeProcessorCtx procCtx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
dispatch(Node nd,
Stack<Node> ndStack,
Object... nodeOutputs)
Dispatcher function.
|
public CostLessRuleDispatcher(SemanticNodeProcessor defaultProc, com.google.common.collect.SetMultimap<Integer,SemanticNodeProcessor> rules, NodeProcessorCtx procCtx)
defaultProc - default processor to be fired if no rule matchesrules - Map mapping the node's type to processorprocCtx - 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 © 2024 The Apache Software Foundation. All rights reserved.