jasm.lang
Interface BytecodeAttribute

All Known Subinterfaces:
Code.BytecodeMapAttribute
All Known Implementing Classes:
BytecodeAttribute.Unknown, Code, ConstantValue, Exceptions, InnerClasses, LineNumberTable, SourceFile, StackMapTable

public interface BytecodeAttribute


Nested Class Summary
static class BytecodeAttribute.Fn
           
static interface BytecodeAttribute.Reader
          A BytecodeAttribute.Reader is an interface used for reading a given kind of BytecodeAttribute.
static class BytecodeAttribute.Unknown
          Class for representing unknown attributes.
 
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.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.
 

Method Detail

name

java.lang.String name()

write

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.

Parameters:
writer -
Throws:
java.io.IOException

addPoolItems

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.

Parameters:
constantPool -

print

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

Parameters:
output -
constantPool -
Throws:
java.io.IOException


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