|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrBaseStatement ilog.rules.factory.IlrStatementBlock ilog.rules.factory.IlrIfStatement
public final class IlrIfStatement
This class represents an if
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.
Nested Class Summary | |
---|---|
static class |
IlrIfStatement.ElseBlock
This class represents the else part of an if
statement. |
Constructor Summary | |
---|---|
IlrIfStatement(IlrTest test,
IlrStatement[] statements)
Constructs an if statement containing only an
if statement block. |
|
IlrIfStatement(IlrTest test,
IlrStatement[] statements,
IlrIfStatement.ElseBlock elseBlock)
Constructs an if statement containing initially the
an if block and an else block. |
Method Summary | |
---|---|
Object |
exploreStatement(IlrFactoryExplorer explorer)
This method explores the if statement using a factory explorer. |
IlrIfStatement.ElseBlock |
getElseBlock()
Returns the else block of this statement. |
IlrTest |
getTest()
Returns the test of this statement. |
String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public IlrIfStatement(IlrTest test, IlrStatement[] statements)
if
statement containing only an
if statement block. There is
no else
part attached to the statement.
test
- The test to perform.statements
- The statements to execute when the
test is true. This parameter can be null
. In this case,
it represents an empty block.public IlrIfStatement(IlrTest test, IlrStatement[] statements, IlrIfStatement.ElseBlock elseBlock)
if
statement containing initially the
an if block and an else block.
test
- The test to perform.statements
- The statements to execute when the
test is true. This parameter can be null
. In this case,
it represents an empty block.elseBlock
- The statements to execute when the
test is false. A null
parameter denotes the absence of
the else block.Method Detail |
---|
public IlrTest getTest()
IlrTest
representing the test.public IlrIfStatement.ElseBlock getElseBlock()
ElseBlock
representing the else block, or
null
if there is no else block.public Object exploreStatement(IlrFactoryExplorer explorer)
explorer
- The factory explorer.
null
if the method does not return a value.public String toString()
toString
in class Object
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |