ilog.rules.brl.translation

Class IlrSimpleActionStatement

  • All Implemented Interfaces:
    IlrNamedStatement, java.io.Serializable


    public class IlrSimpleActionStatement
    extends IlrActionStatement
    This class defines simple actions.

    Current predefined actions kinds include the:

    1. 'simple' which represents a method call, or attribute assignment.
    2. 'update context' which represents the need for an IlrContext update.
    3. 'update object' which represents the need for an update of an object.
    4. 'variable assignment' which represents an assignement of a ruleset variable or ruleset parameter.
    5. CUSTOM_EXTENSION which allows users to add their own kind of simple actions.

    If users wish to add a new kind of simple action, they should use a kind starting from constant CUSTOM_EXTENSION.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int CUSTOM_EXTENSION
      Constant for extending the kind of action statements (value is 10).
      static int SIMPLE
      Constant for simple action, that is for method calls (value is 0).
      static int UPDATE_CONTEXT
      Constant for 'update context' action (value is 2).
      static int UPDATE_OBJECT
      Constant for 'update object' action (value is 1).
      static int VARIABLE_ASSIGNMENT
      Constant for a variable assignment action (value is 3).
    • Field Detail

      • SIMPLE

        public static final int SIMPLE
        Constant for simple action, that is for method calls (value is 0).
        See Also:
        Constant Field Values
      • UPDATE_OBJECT

        public static final int UPDATE_OBJECT
        Constant for 'update object' action (value is 1).
        See Also:
        Constant Field Values
      • UPDATE_CONTEXT

        public static final int UPDATE_CONTEXT
        Constant for 'update context' action (value is 2).
        See Also:
        Constant Field Values
      • VARIABLE_ASSIGNMENT

        public static final int VARIABLE_ASSIGNMENT
        Constant for a variable assignment action (value is 3).
        See Also:
        Constant Field Values
      • CUSTOM_EXTENSION

        public static final int CUSTOM_EXTENSION
        Constant for extending the kind of action statements (value is 10).
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlrSimpleActionStatement

        public IlrSimpleActionStatement(IlrSyntaxTree.Node node)
        Builds a new simple action statement from node. The kind of such an action statement is SIMPLE.
        Parameters:
        node - The node.
    • Method Detail

      • setKind

        public void setKind(int kind)
        Sets the kind of this action statement.
        Parameters:
        kind - The new kind of action statement.
      • getKind

        public int getKind()
        Gets the kind of this action statement.
        Returns:
        The kind of this action statement.

© Copyright IBM Corp. 1987, 2017