Class ExceptionsAttribute

  • All Implemented Interfaces:
    Printable

    public class ExceptionsAttribute
    extends Attribute
    ConstantValue attribute.
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The Exceptions attribute name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExceptionsAttribute

        public ExceptionsAttribute​(ClassInfo classInfo,
                                   int[] exceptions)
        Constructs a new ExceptionsAttribute instance.
        Parameters:
        classInfo - the ClassInfo instance this attribute is part of.
        exceptions - the exception indexes
    • Method Detail

      • print

        public void print​(ClassPrinter out,
                          ClassContext context)
                   throws java.io.IOException
        Description copied from interface: Printable
        Prints this instance.
        Parameters:
        out - the ClassPrinter instance to print to.
        context - the context of this print invocation.
        Throws:
        java.io.IOException - if an I/O error occurs.