Interface IJavaCatchBlock
Interface to represent a catch-block used by
IJavaTry
AST elements.-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addTypes
(Collection<IJavaType> types) boolean
For multi-catch (java >= 7), retrieve additional caught types.getBlock()
Retrieve a read-only copy of the list of caught types.getType()
Retrieve the primary caught type.void
setBlock
(IJavaBlock block) void
void
setIdentifier
(IJavaIdentifier ident) void
-
Method Details
-
getType
IJavaType getType()Retrieve the primary caught type.- Returns:
- never null
-
setType
-
getCaughtTypes
Retrieve a read-only copy of the list of caught types.- Returns:
-
getAdditionalCaughtTypes
For multi-catch (java >= 7), retrieve additional caught types.- Returns:
- a list, possibly null
-
addTypes
-
addType
-
canCatch
-
setIdentifier
-
getIdentifier
IJavaIdentifier getIdentifier() -
setDefifinition
-
getDefinition
IJavaDefinition getDefinition() -
setBlock
-
getBlock
IJavaBlock getBlock()
-