Package com.sun.codemodel
Class JCatchBlock
- java.lang.Object
-
- com.sun.codemodel.JCatchBlock
-
- All Implemented Interfaces:
JGenerable
public class JCatchBlock extends java.lang.Object implements JGenerable
Catch block for a try/catch/finally statement
-
-
Constructor Summary
Constructors Constructor Description JCatchBlock(JClass exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JBlock
body()
void
generate(JFormatter f)
JVar
param(java.lang.String name)
-
-
-
Constructor Detail
-
JCatchBlock
JCatchBlock(JClass exception)
-
-
Method Detail
-
param
public JVar param(java.lang.String name)
-
body
public JBlock body()
-
generate
public void generate(JFormatter f)
- Specified by:
generate
in interfaceJGenerable
-
-