com.objectwave.classFile
Class ExceptionAttributeInfo
java.lang.Object
|
+--com.objectwave.classFile.AttributeInfo
|
+--com.objectwave.classFile.ExceptionAttributeInfo
- public class ExceptionAttributeInfo
- extends AttributeInfo
A specific attribute info.
- Version:
- 1.2
- See Also:
ClassFile
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExceptionAttributeInfo
public ExceptionAttributeInfo()
ExceptionAttributeInfo
public ExceptionAttributeInfo(ConstantPoolInfo newName,
byte[] newData)
getExceptionList
public ConstantPoolInfo[] getExceptionList()
read
public boolean read(java.io.DataInputStream di,
ConstantPoolInfo[] pool)
throws java.io.IOException
- Overrides:
read
in class AttributeInfo
- Parameters:
di
- pool
-
- Returns:
-
- Throws:
java.io.IOException
readTableAttributes
protected void readTableAttributes(ConstantPoolInfo[] pool)
throws java.io.IOException
- Exceptions_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 number_of_exceptions;
u2 exception_index_table[number_of_exceptions];
}
java.io.IOException
write
public void write(java.io.DataOutputStream dos,
ConstantPoolInfo[] pool)
throws java.io.IOException,
java.lang.Exception
- Write the bytes to the output stream.
- Overrides:
write
in class AttributeInfo
- Parameters:
dos
- The DataOutputStream upon which this is writingpool
- The constant pool in which to index.
- Throws:
java.io.IOException
java.lang.Exception
fixUpConstants
protected void fixUpConstants(ClassFile target,
ConstantPoolInfo[] originalPool)
throws java.lang.Exception
- Overrides:
fixUpConstants
in class AttributeInfo
- Parameters:
target
- originalPool
-
- Throws:
java.lang.Exception