Class AttExceptions

java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.AttExceptions
All Implemented Interfaces:
Attribute

public final class AttExceptions extends BaseAttribute
Attribute class for standard Exceptions attributes.
  • Field Details

    • ATTRIBUTE_NAME

      public static final String ATTRIBUTE_NAME
      non-null; attribute name for attributes of this type
      See Also:
  • Constructor Details

    • AttExceptions

      public AttExceptions(TypeList exceptions)
      Constructs an instance.
      Parameters:
      exceptions - non-null; list of classes, presumed but not verified to be subclasses of Throwable
  • Method Details

    • byteLength

      public int byteLength()
      Get the total length of the attribute in bytes, including the header. Since the header is always six bytes, the result of this method is always at least 6.
      Returns:
      >= 6; the total length, in bytes
    • getExceptions

      public TypeList getExceptions()
      Gets the list of classes associated with this instance. In general, these classes are not pre-verified to be subclasses of Throwable.
      Returns:
      non-null; the list of classes