Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc
Class ExceptionsAttribute  view ExceptionsAttribute download ExceptionsAttribute.java

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.Attribute
      extended bycom.chaoswg.xtc4y.classdesc.ExceptionsAttribute

public class ExceptionsAttribute
extends Attribute

This class describes the information for a exceptions attribute ($4.7.4)


Field Summary
private  java.util.Vector exceptions
           
static java.lang.String NAME
           
 
Constructor Summary
  ExceptionsAttribute()
          construct a new deprecated attribute
protected ExceptionsAttribute(java.io.DataInputStream dis, ConstantPool cp, int length)
          Creates a ExceptionsAttribute and initializes it from a DataInputStream The attribute name and length of the attribute information was already read.
 
Method Summary
 void addException(ClassCPEntry exc)
          Add an exception
 ClassCPEntry[] getExceptions()
           
 java.lang.String getName()
           
 void removeException(ClassCPEntry exc)
          Remove an exception
protected  void writeAttribute(java.io.DataOutputStream dos, ConstantPool cp)
          Write the attribute information onto the DataOutputStream, using the constant pool to register variables.
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.Attribute
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exceptions

private java.util.Vector exceptions

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

ExceptionsAttribute

protected ExceptionsAttribute(java.io.DataInputStream dis,
                              ConstantPool cp,
                              int length)
                       throws java.io.IOException
Creates a ExceptionsAttribute and initializes it from a DataInputStream The attribute name and length of the attribute information was already read.


ExceptionsAttribute

public ExceptionsAttribute()
construct a new deprecated attribute

Method Detail

writeAttribute

protected void writeAttribute(java.io.DataOutputStream dos,
                              ConstantPool cp)
                       throws java.io.IOException
Write the attribute information onto the DataOutputStream, using the constant pool to register variables. The Attribute name and the length of the information will already be written. A specific attribute implementation should overwrite this method.

Specified by:
writeAttribute in class Attribute

getName

public java.lang.String getName()
Specified by:
getName in class Attribute

addException

public void addException(ClassCPEntry exc)
Add an exception


getExceptions

public ClassCPEntry[] getExceptions()

removeException

public void removeException(ClassCPEntry exc)
Remove an exception