public final class IlrIfStatement extends IlrStatementBlock
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
IlrIfStatement.ElseBlock
This class represents the
else part of an if
statement. |
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
java.lang.String |
toString() |
addStatement, enumerateStatements, getStatementCount, getStatements, removeStatementpublic 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.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 java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
explorer - The factory explorer.null
if the method does not return a value.public java.lang.String toString()
toString in class java.lang.Object© Copyright IBM Corp. 1987, 2017