Interface IJavaCatchBlock
Interface to represent a catch-block used by
IJavaTry AST elements.-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddTypes(Collection<IJavaType> types) booleanFor 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.voidsetBlock(IJavaBlock block) voidvoidsetIdentifier(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()
-