Rule Execution Server API

ilog.rules.factory
Class IlrStatementBlock

java.lang.Object
  extended by ilog.rules.factory.IlrBaseStatement
      extended by ilog.rules.factory.IlrStatementBlock
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrStatement, Serializable
Direct Known Subclasses:
IlrExecuteStatement, IlrForeachStatement, IlrForStatement, IlrForStatement.ForBlock, IlrIfStatement, IlrIfStatement.ElseBlock, IlrTimeOutBlock, IlrTryCatchFinallyStatement, IlrTryCatchFinallyStatement.CatchBlock, IlrTryCatchFinallyStatement.FinallyBlock, IlrWhileStatement

public abstract class IlrStatementBlock
extends IlrBaseStatement

This abstract class represents a statement block used in the action part of the rules. A statement block can manage local variables.

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
protected IlrStatementBlock(IlrStatement[] statements)
          Constructs a statement block using an array of statements.
 
Method Summary
 void addStatement(IlrStatement statement)
          Adds a statement to this block.
 Enumeration enumerateStatements()
          Returns an enumeration to visit all the statements of this action.
 int getStatementCount()
          Gets the number of statements in this block.
 IlrStatement[] getStatements()
          Gets the statements in this statement block.
 void removeStatement(IlrStatement statement)
          Removes a statement from the statement block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.rules.factory.IlrStatement
exploreStatement
 

Constructor Detail

IlrStatementBlock

protected IlrStatementBlock(IlrStatement[] statements)
Constructs a statement block using an array of statements.

Parameters:
statements - An array of statements.
Method Detail

addStatement

public final void addStatement(IlrStatement statement)
Adds a statement to this block.

Parameters:
statement - The statement to be added.

removeStatement

public final void removeStatement(IlrStatement statement)
Removes a statement from the statement block.

Parameters:
statement - The statement to be removed.

getStatementCount

public final int getStatementCount()
Gets the number of statements in this block.

Returns:
The number of statements in this block.

getStatements

public final IlrStatement[] getStatements()
Gets the statements in this statement block.

Returns:
An array of statements. The array can be of length 0.

enumerateStatements

public final Enumeration enumerateStatements()
Returns an enumeration to visit all the statements of this action.

Returns:
An enumeration of the statements.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013