Rule Execution Server API

ilog.rules.factory
Class IlrWhileStatement

java.lang.Object
  extended by ilog.rules.factory.IlrBaseStatement
      extended by ilog.rules.factory.IlrStatementBlock
          extended by ilog.rules.factory.IlrWhileStatement
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrStatement, Serializable

public final class IlrWhileStatement
extends IlrStatementBlock

This class represents a while statement 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 Summary
IlrWhileStatement(IlrTest test, IlrStatement[] statements)
          Constructs a while statement containing initially the statements given in the array statements
 
Method Summary
 Object exploreStatement(IlrFactoryExplorer explorer)
          This method explores the while statement using a factory explorer.
 IlrTest getTest()
          Returns the test to perform at each loop.
 
Methods inherited from class ilog.rules.factory.IlrStatementBlock
addStatement, enumerateStatements, getStatementCount, getStatements, removeStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrWhileStatement

public IlrWhileStatement(IlrTest test,
                         IlrStatement[] statements)
Constructs a while statement containing initially the statements given in the array statements

Parameters:
test - The test to perform at each loop.
statements - The statements contained in the block. This parameter can be null. In this case, it represents an empty block.
Method Detail

getTest

public IlrTest getTest()
Returns the test to perform at each loop.

Returns:
An IlrTest representing the test.

exploreStatement

public Object exploreStatement(IlrFactoryExplorer explorer)
This method explores the while 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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013