# Interface: com.pnfsoftware.jeb.core.units.code.java.IJavaCatchBlock

Interface to represent a catch\-block used by [IJavaTry](IJavaTry) AST elements.

## Method: addType
- parameter: `type`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaType`


## Method: addTypes
- parameter: `types`, type: `java.util.Collection<com.pnfsoftware.jeb.core.units.code.java.IJavaType>`


## Method: canCatch
- parameter: `typestring`, type: `java.lang.String`
- return type: `boolean`


## Method: getAdditionalCaughtTypes
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.java.IJavaType>`

Description: For multi\-catch \(java \>= 7\), retrieve additional caught types.
return: a list, possibly null

## Method: getBlock
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaBlock`


## Method: getCaughtTypes
- return type: `java.util.List<com.pnfsoftware.jeb.core.units.code.java.IJavaType>`

Description: Retrieve a read\-only copy of the list of caught types.
return: 

## Method: getDefinition
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaDefinition`


## Method: getIdentifier
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaIdentifier`


## Method: getType
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaType`

Description: Retrieve the primary caught type.
return: never null

## Method: setBlock
- parameter: `block`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaBlock`


## Method: setDefifinition
- parameter: `def`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaDefinition`


## Method: setIdentifier
- parameter: `ident`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaIdentifier`


## Method: setType
- parameter: `type`, type: `com.pnfsoftware.jeb.core.units.code.java.IJavaType`


