ilog.rules.factory
Class IlrTryCatchFinallyStatement
- java.lang.Object
-
- ilog.rules.factory.IlrBaseStatement
-
- ilog.rules.factory.IlrStatementBlock
-
- ilog.rules.factory.IlrTryCatchFinallyStatement
-
- All Implemented Interfaces:
- ilog.rules.factory.IlrSourceElement, IlrStatement, java.io.Serializable
public final class IlrTryCatchFinallyStatement extends IlrStatementBlock
This class represents atry - catch - finallystatement 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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classIlrTryCatchFinallyStatement.CatchBlockThis class represents thecatchpart of atry - catch - finallystatement.static classIlrTryCatchFinallyStatement.FinallyBlockThis class represents thefinallypart of atry - catch - finallystatement.
-
Constructor Summary
Constructors Constructor and Description IlrTryCatchFinallyStatement(IlrStatement[] statements, java.util.List catchBlocks, IlrTryCatchFinallyStatement.FinallyBlock finallyBlock)Constructs atry - catch - finallystatement.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.ObjectexploreStatement(IlrFactoryExplorer explorer)Explores thetry - catchstatement using a factory explorer.IlrTryCatchFinallyStatement.CatchBlockgetCatchBlockAt(int index)Returns thecatchblock of this statement, at the given index.java.util.VectorgetCatchBlocks()Returns thecatchblocks of this statement.IlrTryCatchFinallyStatement.FinallyBlockgetFinallyBlock()Returns thefinallyblock of this statement.booleanhasCatchClause()Indicates if thetrystatement has at least acatchclause.booleanhasFinallyClause()Indicates whether thetrystatement has afinallyclause or not.-
Methods inherited from class ilog.rules.factory.IlrStatementBlock
addStatement, enumerateStatements, getStatementCount, getStatements, removeStatement
-
-
-
-
Constructor Detail
-
IlrTryCatchFinallyStatement
public IlrTryCatchFinallyStatement(IlrStatement[] statements, java.util.List catchBlocks, IlrTryCatchFinallyStatement.FinallyBlock finallyBlock)
Constructs atry - catch - finallystatement.- Parameters:
statements- The statements in thetryblock.catchBlocks- A vector ofIlrTryCatchFinallyStatement.CatchBlocks.finallyBlock- Thefinallyblock. It may benull.
-
-
Method Detail
-
getFinallyBlock
public IlrTryCatchFinallyStatement.FinallyBlock getFinallyBlock()
Returns thefinallyblock of this statement.- Returns:
- A
FinallyBlockrepresenting thefinallyblock, ornullif there is nofinallyblock.
-
getCatchBlocks
public java.util.Vector getCatchBlocks()
Returns thecatchblocks of this statement.- Returns:
- A
VectorcontainingCatchBlockobjects. EachCatchBlockrepresents acatchclause. It returnsnullif there is nofinallyblock.
-
hasCatchClause
public boolean hasCatchClause()
Indicates if thetrystatement has at least acatchclause.- Returns:
- A
booleanwhose value istrueif thetrystatement has at least acatchclause, or else the returned value isfalse.
-
hasFinallyClause
public boolean hasFinallyClause()
Indicates whether thetrystatement has afinallyclause or not.- Returns:
- A
booleanwhose value istrueif thetrystatement has afinallyclause, or else the returned value isfalse.
-
getCatchBlockAt
public IlrTryCatchFinallyStatement.CatchBlock getCatchBlockAt(int index)
Returns thecatchblock of this statement, at the given index. If there are nocatchblocks or the given index is higher than the number of catch blocks, the returned value isnull.- Returns:
- The
catchblock at the specified index in thistrystatement.
-
exploreStatement
public java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
Explores thetry - catchstatement using a factory explorer.- Parameters:
explorer- The factory explorer.- Returns:
- An object, the result of the exploration, or
nullif the method does not return a value.
-
-