public class StackMapTable extends Object implements BytecodeAttribute
| Modifier and Type | Class and Description |
|---|---|
static class |
StackMapTable.Frame
Represents a full stack frame.
|
BytecodeAttribute.Fn, BytecodeAttribute.Reader, BytecodeAttribute.Unknown| Constructor and Description |
|---|
StackMapTable(StackMapTable.Frame[] frames) |
| 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.
|
StackMapTable.Frame |
frameAt(int index)
Returns the stack frame at the given bytecode index.
|
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.
|
public StackMapTable(StackMapTable.Frame[] frames)
public String name()
name in interface BytecodeAttributepublic void write(BinaryOutputStream writer, Map<Constant.Info,Integer> constantPool) throws IOException
BytecodeAttributewrite in interface BytecodeAttributewriter - Outputstream to which the attribute should be written.constantPool - Map of CONSTANT_info items to their index in the constant pool.IOExceptionpublic void addPoolItems(Set<Constant.Info> constantPool)
BytecodeAttributeaddPoolItems in interface BytecodeAttributepublic void print(PrintWriter output, Map<Constant.Info,Integer> constantPool) throws IOException
BytecodeAttributeprint in interface BytecodeAttributeoutput - Output writer to which the attribute is printed.constantPool - Map of CONSTANT_info items to their index in the constant
pool.IOExceptionpublic StackMapTable.Frame frameAt(int index)
Code.bytecodes.index - Copyright © 2016. All rights reserved.