classfilewriter 1.0.0.Final

org.jboss.classfilewriter.attributes
Class ExceptionsAttribute

java.lang.Object
  extended by org.jboss.classfilewriter.attributes.Attribute
      extended by 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

Field Summary
static String NAME
           
 
Constructor Summary
ExceptionsAttribute(ConstPool constPool)
           
 
Method Summary
 void addExceptionClass(String exception)
           
 void writeData(ByteArrayDataOutputStream stream)
           
 
Methods inherited from class org.jboss.classfilewriter.attributes.Attribute
getName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
writeData in class Attribute
Throws:
IOException

classfilewriter 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.