ilog.rules.brl.semantic

Class IlrBRLSemanticAction

  • java.lang.Object
    • ilog.rules.brl.semantic.IlrBRLSemanticAction
  • All Implemented Interfaces:
    ilog.rules.brl.semantic.IlrBRLSemanticActionDef
    Direct Known Subclasses:
    IlrBRL.CheckValue, IlrBRL.DeclareVariable


    public abstract class IlrBRLSemanticAction
    extends java.lang.Object
    implements ilog.rules.brl.semantic.IlrBRLSemanticActionDef
    Represents the action to be applied to an Abstract Syntax Tree (AST) node when the Abstract Syntax Tree is being built. Semantic actions are associated with the node type of the business rule language definition, in the concrete syntax .properties file, with the property semanticAction. Semantic actions can also be associated with the role of a sentence (parameter of a BOM method or a BOM attribute) in the BOM file, with the property semanticAction[<argument_index>] for an argument of a method, or semanticAction for an attribute.
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrBRLSemanticAction(java.lang.String[] args)
      Creates a semantic action.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      abstract void apply(IlrBRLSemanticContext context, IlrSyntaxTree.Node node)
      Invoked during the build of the Abstract Syntax Tree in order to decorate the Abstract Syntax Tree node node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrBRLSemanticAction

        public IlrBRLSemanticAction(java.lang.String[] args)
        Creates a semantic action. The semantic action can be parameterized by arguments given in the .properties file of the business rule language definition.
        Parameters:
        args - The list of arguments.
    • Method Detail

      • apply

        public abstract void apply(IlrBRLSemanticContext context,
                 IlrSyntaxTree.Node node)
        Invoked during the build of the Abstract Syntax Tree in order to decorate the Abstract Syntax Tree node node. When this method is invoked the Abstract Syntax Tree node node cannot yet be attached to its super node.
        Parameters:
        context - The associated semantic context.
        node - The node on which the semantic action must be applied.
        See Also:
        IlrBRLSemanticContext

© Copyright IBM Corp. 1987, 2017