Package com.sun.codemodel
Class JTryBlock
- java.lang.Object
-
- com.sun.codemodel.JTryBlock
-
- All Implemented Interfaces:
JStatement
public class JTryBlock extends java.lang.Object implements JStatement
Try statement with Catch and/or Finally clause
-
-
Constructor Summary
Constructors Constructor Description JTryBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JCatchBlock
_catch(JClass exception)
JBlock
_finally()
JBlock
body()
void
state(JFormatter f)
-
-
-
Field Detail
-
body
private JBlock body
-
catches
private java.util.List<JCatchBlock> catches
-
_finally
private JBlock _finally
-
-
Method Detail
-
body
public JBlock body()
-
_catch
public JCatchBlock _catch(JClass exception)
-
_finally
public JBlock _finally()
-
state
public void state(JFormatter f)
- Specified by:
state
in interfaceJStatement
-
-