Rule Execution Server API

ilog.rules.factory
Class IlrForStatement

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

public final class IlrForStatement
extends IlrStatementBlock

This class represents a for 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

Nested Class Summary
static class IlrForStatement.ForBlock
          This class represents the inner block part of an for statement.
 
Constructor Summary
IlrForStatement(IlrStatement[] initStmts, IlrTest continueTest, IlrStatement[] stepStmts, IlrStatement[] statements)
          Constructs a for instruction.
IlrForStatement(IlrStatement initStmt, IlrTest continueTest, IlrStatement stepStmt, IlrStatement[] statements)
          Constructs a for instruction.
 
Method Summary
 Object exploreStatement(IlrFactoryExplorer explorer)
          Explores this method call as a statement using a factory explorer.
 IlrTest getContinueTest()
          Returns the test of this statement.
 IlrForStatement.ForBlock getInitBlock()
          Returns the init block of this statement.
 IlrForStatement.ForBlock getStepBlock()
          Returns the step block of this statement.
 boolean hasContinueTest()
          Knows if the test of this statement exists.
 
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

IlrForStatement

public IlrForStatement(IlrStatement[] initStmts,
                       IlrTest continueTest,
                       IlrStatement[] stepStmts,
                       IlrStatement[] statements)
Constructs a for instruction.

Parameters:
initStmts - the init statements
continueTest - the for continue test
stepStmts - the step statements.
statements - the statements of the inner block.

IlrForStatement

public IlrForStatement(IlrStatement initStmt,
                       IlrTest continueTest,
                       IlrStatement stepStmt,
                       IlrStatement[] statements)
Constructs a for instruction.

Parameters:
initStmt - the bind init statement
continueTest - the for continue test
stepStmt - the next statement.
statements - the statements of the inner block.
Method Detail

exploreStatement

public 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.

getContinueTest

public IlrTest getContinueTest()
Returns the test of this statement.

Returns:
An IlrTest representing the test.

hasContinueTest

public boolean hasContinueTest()
Knows if the test of this statement exists.

Returns:
An boolean representing the result.

getInitBlock

public IlrForStatement.ForBlock getInitBlock()
Returns the init block of this statement.

Returns:
An ForBlock representing the init block

getStepBlock

public IlrForStatement.ForBlock getStepBlock()
Returns the step block of this statement.

Returns:
An ForBlock representing the step block

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013