Class ExceptionsAttribute
- java.lang.Object
-
- org.jboss.classfilewriter.attributes.Attribute
-
- org.jboss.classfilewriter.attributes.ExceptionsAttribute
-
- All Implemented Interfaces:
WritableEntry
public class ExceptionsAttribute extends Attribute
The exceptions attribute, stores the checked exceptions a method is declared to throw- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ExceptionsAttribute(ConstPool constPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExceptionClass(String exception)voidwriteData(ByteArrayDataOutputStream stream)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExceptionsAttribute
public ExceptionsAttribute(ConstPool constPool)
-
-
Method Detail
-
addExceptionClass
public void addExceptionClass(String exception)
-
writeData
public void writeData(ByteArrayDataOutputStream stream) throws IOException
- Specified by:
writeDatain classAttribute- Throws:
IOException
-
-