public interface BytecodeAttribute
| Modifier and Type | Interface and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoolItems(Set<Constant.Info> constantPool)
When this method is called, the attribute must add all items that it
needs to the constant pool.
|
String |
name() |
void |
print(PrintWriter output,
Map<Constant.Info,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,
Map<Constant.Info,Integer> constantPool)
This method requires the attribute to write itself to the binary stream.
|
String name()
void write(BinaryOutputStream writer, Map<Constant.Info,Integer> constantPool) throws IOException
writer - Outputstream to which the attribute should be written.constantPool - Map of CONSTANT_info items to their index in the constant pool.IOExceptionvoid addPoolItems(Set<Constant.Info> constantPool)
constantPool - void print(PrintWriter output, Map<Constant.Info,Integer> constantPool) throws IOException
output - Output writer to which the attribute is printed.constantPool - Map of CONSTANT_info items to their index in the constant
pool.IOExceptionCopyright © 2016. All rights reserved.