|
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.IlrTryCatchFinallyStatement
public final class IlrTryCatchFinallyStatement
This class represents a 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.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
IlrTryCatchFinallyStatement(IlrStatement[] statements,
List catchBlocks,
IlrTryCatchFinallyStatement.FinallyBlock finallyBlock)
Constructs a try - catch - finally statement. |
Method Summary | |
---|---|
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. |
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. |
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 |
---|
public IlrTryCatchFinallyStatement(IlrStatement[] statements, List catchBlocks, IlrTryCatchFinallyStatement.FinallyBlock finallyBlock)
try - catch - finally
statement.
statements
- The statements in the try
block.catchBlocks
- A vector of IlrTryCatchFinallyStatement.CatchBlock
s.finallyBlock
- The finally
block.
It may be null
.Method Detail |
---|
public IlrTryCatchFinallyStatement.FinallyBlock getFinallyBlock()
finally
block of this statement.
FinallyBlock
representing the
finally
block, or
null
if there is no finally
block.public 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 Object exploreStatement(IlrFactoryExplorer explorer)
try - catch
statement using a factory explorer.
explorer
- The factory explorer.
null
if the method does not return a value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |