public final class IlrTryCatchFinallyStatement extends IlrStatementBlock
try - catch - finally 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 |
IlrTryCatchFinallyStatement.CatchBlock
This class represents the
catch part of a
try - catch - finally statement. |
static class |
IlrTryCatchFinallyStatement.FinallyBlock
This class represents the
finally part of a
try - catch - finally statement. |
| Constructor and Description |
|---|
IlrTryCatchFinallyStatement(IlrStatement[] statements,
java.util.List catchBlocks,
IlrTryCatchFinallyStatement.FinallyBlock finallyBlock)
Constructs a
try - catch - finally statement. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exploreStatement(IlrFactoryExplorer explorer)
Explores the
try - catch statement using a factory explorer. |
IlrTryCatchFinallyStatement.CatchBlock |
getCatchBlockAt(int index)
Returns the
catch block of this statement, at the given index. |
java.util.Vector |
getCatchBlocks()
Returns the
catch blocks of this statement. |
IlrTryCatchFinallyStatement.FinallyBlock |
getFinallyBlock()
Returns the
finally block of this statement. |
boolean |
hasCatchClause()
Indicates if the
try statement has at least a
catch clause. |
boolean |
hasFinallyClause()
Indicates whether the
try statement has a
finally clause or not. |
addStatement, enumerateStatements, getStatementCount, getStatements, removeStatementpublic IlrTryCatchFinallyStatement(IlrStatement[] statements, java.util.List catchBlocks, IlrTryCatchFinallyStatement.FinallyBlock finallyBlock)
try - catch - finally statement.statements - The statements in the try block.catchBlocks - A vector of IlrTryCatchFinallyStatement.CatchBlocks.finallyBlock - The finally block.
It may be null.public IlrTryCatchFinallyStatement.FinallyBlock getFinallyBlock()
finally block of this statement.FinallyBlock representing the
finally block, or
null if there is no finally block.public java.util.Vector getCatchBlocks()
catch blocks of this statement.Vector containing
CatchBlock objects. Each
CatchBlock represents a catch clause.
It returns null if there is no finally
block.public boolean hasCatchClause()
try statement has at least a
catch clause.boolean whose value is true
if the try statement
has at least a catch clause, or else the returned
value is false.public boolean hasFinallyClause()
try statement has a
finally clause or not.boolean whose value is true
if the try statement
has a finally clause, or else the returned value
is false.public IlrTryCatchFinallyStatement.CatchBlock getCatchBlockAt(int index)
catch block of this statement, at the given index.
If there are no catch blocks or the given index is higher than the
number of catch blocks, the returned value is null.catch block at the specified index in this
try statement.public java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
try - catch statement using a factory explorer.explorer - The factory explorer.null
if the method does not return a value.© Copyright IBM Corp. 1987, 2017