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