FileDocCategorySizeDatePackage
AttExceptions.javaAPI DocAndroid 1.5 API2119Wed May 06 22:41:02 BST 2009com.android.dx.cf.attrib

AttExceptions

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

Fields Summary
public static final String
ATTRIBUTE_NAME
non-null; attribute name for attributes of this type
private final com.android.dx.rop.type.TypeList
exceptions
non-null; list of exception classes
Constructors Summary
public AttExceptions(com.android.dx.rop.type.TypeList exceptions)
Constructs an instance.

param
exceptions non-null; list of classes, presumed but not verified to be subclasses of Throwable


                            
       
        super(ATTRIBUTE_NAME);

        try {
            if (exceptions.isMutable()) {
                throw new MutabilityException("exceptions.isMutable()");
            }
        } catch (NullPointerException ex) {
            // Translate the exception.
            throw new NullPointerException("exceptions == null");
        }

        this.exceptions = exceptions;
    
Methods Summary
public intbyteLength()
{@inheritDoc}

        return 8 + exceptions.size() * 2;
    
public com.android.dx.rop.type.TypeListgetExceptions()
Gets the list of classes associated with this instance. In general, these classes are not pre-verified to be subclasses of Throwable.

return
non-null; the list of classes

        return exceptions;