public interface

IJavaCatchBlock

com.pnfsoftware.jeb.core.units.code.java.IJavaCatchBlock

Class Overview

Interface to represent a catch-block used by IJavaTry AST elements.

Summary

Public Methods
abstract void addType(IJavaType type)
abstract void addTypes(Collection<IJavaType> types)
abstract boolean canCatch(String typestring)
abstract List<IJavaType> getAdditionalCaughtTypes()
For multi-catch (java >= 7), retrieve additional caught types.
abstract IJavaBlock getBlock()
abstract List<IJavaType> getCaughtTypes()
Retrieve a read-only copy of the list of caught types.
abstract IJavaDefinition getDefinition()
abstract IJavaIdentifier getIdentifier()
abstract IJavaType getType()
Retrieve the primary caught type.
abstract void setBlock(IJavaBlock block)
abstract void setDefifinition(IJavaDefinition def)
abstract void setIdentifier(IJavaIdentifier ident)
abstract void setType(IJavaType type)

Public Methods

public abstract void addType (IJavaType type)

public abstract void addTypes (Collection<IJavaType> types)

public abstract boolean canCatch (String typestring)

public abstract List<IJavaType> getAdditionalCaughtTypes ()

For multi-catch (java >= 7), retrieve additional caught types.

Returns
  • a list, possibly null

public abstract IJavaBlock getBlock ()

public abstract List<IJavaType> getCaughtTypes ()

Retrieve a read-only copy of the list of caught types.

public abstract IJavaDefinition getDefinition ()

public abstract IJavaIdentifier getIdentifier ()

public abstract IJavaType getType ()

Retrieve the primary caught type.

Returns
  • never null

public abstract void setBlock (IJavaBlock block)

public abstract void setDefifinition (IJavaDefinition def)

public abstract void setIdentifier (IJavaIdentifier ident)

public abstract void setType (IJavaType type)