Interface IJavaCatchBlock


@Ser public interface IJavaCatchBlock
Interface to represent a catch-block used by IJavaTry AST elements.
  • Method Details

    • getType

      IJavaType getType()
      Retrieve the primary caught type.
      Returns:
      never null
    • setType

      void setType(IJavaType type)
    • getCaughtTypes

      List<IJavaType> getCaughtTypes()
      Retrieve a read-only copy of the list of caught types.
      Returns:
    • getAdditionalCaughtTypes

      List<IJavaType> getAdditionalCaughtTypes()
      For multi-catch (java >= 7), retrieve additional caught types.
      Returns:
      a list, possibly null
    • addTypes

      void addTypes(Collection<IJavaType> types)
    • addType

      void addType(IJavaType type)
    • canCatch

      boolean canCatch(String typestring)
    • setIdentifier

      void setIdentifier(IJavaIdentifier ident)
    • getIdentifier

      IJavaIdentifier getIdentifier()
    • setDefifinition

      void setDefifinition(IJavaDefinition def)
    • getDefinition

      IJavaDefinition getDefinition()
    • setBlock

      void setBlock(IJavaBlock block)
    • getBlock

      IJavaBlock getBlock()