public class IlrForeachStatement extends IlrStatementBlock
foreach 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.
| Constructor and Description |
|---|
IlrForeachStatement(IlrType type,
java.lang.String name,
IlrValue collection,
IlrStatement[] stats)
Constructs a
foreach instruction. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exploreStatement(IlrFactoryExplorer explorer)
Explores this method call as a statement using a factory explorer.
|
IlrValue |
getCollection()
Returns the collection.
|
java.lang.String |
getName()
Returns the name of the local variable declared in the
foreach. |
IlrType |
getXOMType()
Returns the type of the local variable declared in the
foreach. |
addStatement, enumerateStatements, getStatementCount, getStatements, removeStatementpublic IlrForeachStatement(IlrType type, java.lang.String name, IlrValue collection, IlrStatement[] stats)
foreach instruction.type - The type of the foreach local variable.name - The name of the foreach local variable.collection - The collection on which to iterate.stats - The block of instructions of the foreach statement.public java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
explorer - The factory explorer.null
if the method does not return a value.public java.lang.String getName()
foreach.public IlrValue getCollection()
IlrValue representing the collection.public IlrType getXOMType()
foreach.IlrType representing the type of the
local variable.© Copyright IBM Corp. 1987, 2017