jasm.attributes
Class Exceptions

java.lang.Object
  extended by jasm.attributes.Exceptions
All Implemented Interfaces:
BytecodeAttribute

public class Exceptions
extends java.lang.Object
implements BytecodeAttribute


Nested Class Summary
 
Nested classes/interfaces inherited from interface jasm.lang.BytecodeAttribute
BytecodeAttribute.Fn, BytecodeAttribute.Reader, BytecodeAttribute.Unknown
 
Field Summary
protected  java.util.List<JvmType.Clazz> exceptions
           
 
Constructor Summary
Exceptions(java.util.List<JvmType.Clazz> exceptions)
           
 
Method Summary
 void addPoolItems(java.util.Set<Constant.Info> constantPool)
          When this method is called, the attribute must add all items that it needs to the constant pool.
 java.util.List<JvmType.Clazz> exceptions()
           
 java.lang.String name()
           
 void print(java.io.PrintWriter output, java.util.Map<Constant.Info,java.lang.Integer> constantPool)
          This method is used to print the contents of the attribute in human-readable form, similar to that produced by "javap".
 void write(BinaryOutputStream writer, java.util.Map<Constant.Info,java.lang.Integer> constantPool)
          This method requires the attribute to write itself to the binary stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptions

protected java.util.List<JvmType.Clazz> exceptions
Constructor Detail

Exceptions

public Exceptions(java.util.List<JvmType.Clazz> exceptions)
Method Detail

name

public java.lang.String name()
Specified by:
name in interface BytecodeAttribute

exceptions

public java.util.List<JvmType.Clazz> exceptions()

write

public void write(BinaryOutputStream writer,
                  java.util.Map<Constant.Info,java.lang.Integer> constantPool)
           throws java.io.IOException
This method requires the attribute to write itself to the binary stream.

Specified by:
write in interface BytecodeAttribute
Parameters:
writer -
Throws:
java.io.IOException

addPoolItems

public void addPoolItems(java.util.Set<Constant.Info> constantPool)
When this method is called, the attribute must add all items that it needs to the constant pool.

Specified by:
addPoolItems in interface BytecodeAttribute
Parameters:
constantPool -

print

public void print(java.io.PrintWriter output,
                  java.util.Map<Constant.Info,java.lang.Integer> constantPool)
Description copied from interface: BytecodeAttribute
This method is used to print the contents of the attribute in human-readable form, similar to that produced by "javap".

Specified by:
print in interface BytecodeAttribute


Copyright © 2013 David J. Pearce. All Rights Reserved.