ilog.rules.factory

Class IlrForeachStatement

  • All Implemented Interfaces:
    ilog.rules.factory.IlrSourceElement, IlrStatement, java.io.Serializable


    public class IlrForeachStatement
    extends IlrStatementBlock
    This class represents a foreach instruction of the rule language.

    Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.

    See Also:
    Serialized Form
    • Constructor Detail

      • IlrForeachStatement

        public IlrForeachStatement(IlrType type,
                           java.lang.String name,
                           IlrValue collection,
                           IlrStatement[] stats)
        Constructs a foreach instruction.
        Parameters:
        type - The type of the foreach local variable.
        name - The name of the foreach local variable.
        collection - The collection on which to iterate.
        stats - The block of instructions of the foreach statement.
    • Method Detail

      • exploreStatement

        public java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
        Explores this method call as a statement using a factory explorer.
        Parameters:
        explorer - The factory explorer.
        Returns:
        An object, the result of the exploration, or null if the method does not return a value.
      • getName

        public java.lang.String getName()
        Returns the name of the local variable declared in the foreach.
        Returns:
        The name of the local variable.
      • getCollection

        public IlrValue getCollection()
        Returns the collection.
        Returns:
        An IlrValue representing the collection.
      • getXOMType

        public IlrType getXOMType()
        Returns the type of the local variable declared in the foreach.
        Returns:
        An IlrType representing the type of the local variable.

© Copyright IBM Corp. 1987, 2017