public class ExceptionHandler extends CompoundStatement
| Constructor and Description |
|---|
ExceptionHandler(CompoundStatement try_block,
java.util.List catch_blocks)
Creates an exception handler.
|
ExceptionHandler(CompoundStatement try_block,
java.util.List catch_blocks,
CompoundStatement finally_block)
Creates an exception handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCatchBlock(CompoundStatement catch_block)
Appends a catch block to the list of catch blocks.
|
void |
addFinallyBlock(CompoundStatement finally_block)
Appends a finally block.
|
static void |
defaultPrint(ExceptionHandler h,
java.io.PrintWriter o)
Prints a statement to a stream.
|
addDeclaration, addDeclarationAfter, addDeclarationBefore, addStatement, addStatementAfter, addStatementBefore, clone, containsDeclaration, containsSymbol, countStatements, defaultPrint, findSymbol, getDeclarations, getParentTables, getSymbols, removeChild, removeStatementannotate, annotateAfter, annotateBefore, containsAnnotation, detach, equals, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, getProcedure, hashCode, print, removeAnnotations, removeAnnotations, setChild, setLineNumber, setParent, setPrintMethod, swapWith, toString, verify, wheregetChildren, getParent, setChild, setParentpublic ExceptionHandler(CompoundStatement try_block, java.util.List catch_blocks)
public ExceptionHandler(CompoundStatement try_block, java.util.List catch_blocks, CompoundStatement finally_block)
public void addCatchBlock(CompoundStatement catch_block)
catch_block - The block to add.public void addFinallyBlock(CompoundStatement finally_block)
finally_block - The block to add.public static void defaultPrint(ExceptionHandler h, java.io.PrintWriter o)
h - The statement to print.o - The writer on which to print the statement.