koala.dynamicjava.classfile
Class ExceptionsAttribute

java.lang.Object
  extended bykoala.dynamicjava.classfile.BytecodeComponent
      extended bykoala.dynamicjava.classfile.AttributeInfo
          extended bykoala.dynamicjava.classfile.ExceptionsAttribute

public class ExceptionsAttribute
extends AttributeInfo

This class represents a method exceptions attribute


Field Summary
 
Fields inherited from class koala.dynamicjava.classfile.AttributeInfo
length
 
Fields inherited from class koala.dynamicjava.classfile.BytecodeComponent
constantPool, nameIndex
 
Constructor Summary
ExceptionsAttribute(ConstantPool cp)
          Creates a new empty (not valid) code attribute
 
Method Summary
 void addException(java.lang.String name)
          Adds an exception to the attribute
 void write(java.io.DataOutputStream out)
          Writes the exception info to the given output stream.
 
Methods inherited from class koala.dynamicjava.classfile.BytecodeComponent
getConstantPool, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionsAttribute

public ExceptionsAttribute(ConstantPool cp)
Creates a new empty (not valid) code attribute

Parameters:
cp - the constant pool
Method Detail

write

public void write(java.io.DataOutputStream out)
           throws java.io.IOException
Writes the exception info to the given output stream.

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

addException

public void addException(java.lang.String name)
Adds an exception to the attribute

Parameters:
name - the name of the exception


Copyright © 2001 Stephane Hillion. All Rights Reserved.