com.caucho.bytecode
Class ExceptionsAttribute

java.lang.Object
  extended by com.caucho.bytecode.Attribute
      extended by com.caucho.bytecode.ExceptionsAttribute

public class ExceptionsAttribute
extends Attribute

Represents a generic attribute


Method Summary
 void addException(java.lang.String exn)
          Adds an exception
 Attribute export(JavaClass cl, JavaClass target)
          Clones the attribute
 java.util.ArrayList<java.lang.String> getExceptionList()
          Returns the exceptions.
 void read(ByteCodeParser in)
          Writes the field to the output.
 java.lang.String toString()
           
 void write(ByteCodeWriter out)
          Writes the field to the output.
 
Methods inherited from class com.caucho.bytecode.Attribute
addConstants, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addException

public void addException(java.lang.String exn)
Adds an exception


getExceptionList

public java.util.ArrayList<java.lang.String> getExceptionList()
Returns the exceptions.


read

public void read(ByteCodeParser in)
          throws java.io.IOException
Writes the field to the output.

Throws:
java.io.IOException

write

public void write(ByteCodeWriter out)
           throws java.io.IOException
Writes the field to the output.

Specified by:
write in class Attribute
Throws:
java.io.IOException

export

public Attribute export(JavaClass cl,
                        JavaClass target)
Clones the attribute

Overrides:
export in class Attribute

toString

public java.lang.String toString()
Overrides:
toString in class Attribute