|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.rules.brl.bal60.IlrBALRuleNodeTranslator
public class IlrBALRuleNodeTranslator
Root node translator for the Business Action Language. This node translator is attached to the node of type
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)
| Constructor Summary | |
|---|---|
IlrBALRuleNodeTranslator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlrBALRuleNodeTranslator()
| Method Detail |
|---|
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.
|
ILOG JRules | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||