Class TBlockSqlNode

All Implemented Interfaces:
Visitable, Iterator<TSourceToken>

public class TBlockSqlNode extends TNodeWithLabel
TBlockSqlNode represents a block in a stored procedure. It's used in TCreateFunctionStmt and TCreateProcedureStmt to retrieve the declarations and statements as shown below.

The mainly used methods are getDeclareStmts() to retrieve the declarations, getBodyStatements() to retrieve the statements.

getExceptionClause() represents the exception section in the block if any.

 [ <<label>> ]
 [ DECLARE
     declarations ]
 BEGIN
     statements
 END [ label ];
 
See Also: