public class IlrBALRuleNodeTranslator extends java.lang.Object implements IlrNodeTranslator
T-rule in BAL.properties.
This class may be subclassed to redefine the following methods :
processBindings(IlrSyntaxTree.Node, IlrTranslationContext)processConditions(IlrSyntaxTree.Node, IlrTranslationContext)li>
processActions(IlrSyntaxTree.Node, IlrTranslationContext)processElseActions(IlrSyntaxTree.Node, IlrTranslationContext)postProcessRule(IlrSyntaxTree.Node, IlrTranslationContext)| Modifier and Type | Field and Description |
|---|---|
static boolean |
GENERATE_MINIMAL_EVALUATION_FOR_CONJUNCTIONS |
| Constructor and Description |
|---|
IlrBALRuleNodeTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
postProcessRule(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Postprocesses the produced intermediate form.
|
IlrStatement |
process(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the specified
node. |
protected void |
processAction(IlrSyntaxTree.Node actionNode,
IlrTranslationContext context)
Processes the node
node to add the corresponding action or else action. |
protected void |
processActions(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the node to add all necessary actions to the rule statement.
|
protected void |
processBinding(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the node
node to add the corresponding binding. |
protected void |
processBindings(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the node to add all necessary bindings to the rule statement.
|
protected void |
processConditions(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the node to add an instance of
IlrEvaluateStatement to the rule statement,
corresponding to the tests of the business rule. |
protected void |
processElseActions(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the node to add all necessary else actions to the rule statement.
|
protected void |
processRule(IlrSyntaxTree.Node node,
IlrTranslationContext context)
Processes the node to create an instance of
IlrRuleStatement. |
public static boolean GENERATE_MINIMAL_EVALUATION_FOR_CONJUNCTIONS
public IlrStatement process(IlrSyntaxTree.Node node, IlrTranslationContext context)
node.
This methods calls sequentially:
processBindings(IlrSyntaxTree.Node, IlrTranslationContext)processBinding(IlrSyntaxTree.Node, IlrTranslationContext)processConditions(IlrSyntaxTree.Node, IlrTranslationContext)li>
processActions(IlrSyntaxTree.Node, IlrTranslationContext)processAction(IlrSyntaxTree.Node, IlrTranslationContext)processElseActions(IlrSyntaxTree.Node, IlrTranslationContext)postProcessRule(IlrSyntaxTree.Node, IlrTranslationContext)process in interface IlrNodeTranslatornode - The node to process.context - the translation context.protected void processRule(IlrSyntaxTree.Node node, IlrTranslationContext context)
IlrRuleStatement.node - The syntax tree node.context - The translation context.protected void processBindings(IlrSyntaxTree.Node node, IlrTranslationContext context)
node - The syntax tree node.context - The translation context.protected void processBinding(IlrSyntaxTree.Node node, IlrTranslationContext context)
node to add the corresponding binding.node - The node.context - The translation context.protected void processConditions(IlrSyntaxTree.Node node, IlrTranslationContext context)
IlrEvaluateStatement to the rule statement,
corresponding to the tests of the business rule.node - The syntax tree node.context - The translation context.protected void processActions(IlrSyntaxTree.Node node, IlrTranslationContext context)
processAction(IlrSyntaxTree.Node, IlrTranslationContext) on all subnodes.node - The syntax tree node.context - The translation context.protected void processAction(IlrSyntaxTree.Node actionNode, IlrTranslationContext context)
node to add the corresponding action or else action.actionNode - The action node.context - The translation context.protected void processElseActions(IlrSyntaxTree.Node node, IlrTranslationContext context)
node - The syntax tree node.context - The translation context.protected void postProcessRule(IlrSyntaxTree.Node node, IlrTranslationContext context)
node - The syntax tree node.context - The translation context.© Copyright IBM Corp. 1987, 2017