|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjasm.attributes.StackMapTable
public class StackMapTable
Consists of zero or more stack map frames. Each stack map frame specifies (either explicitly or implicitly) a bytecode offset, the verification types for the local variables, and the verification types for the operand stack.
Nested Class Summary | |
---|---|
static class |
StackMapTable.Frame
Represents a full stack frame. |
Nested classes/interfaces inherited from interface jasm.lang.BytecodeAttribute |
---|
BytecodeAttribute.Fn, BytecodeAttribute.Reader, BytecodeAttribute.Unknown |
Constructor Summary | |
---|---|
StackMapTable(StackMapTable.Frame[] frames)
|
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. |
StackMapTable.Frame |
frameAt(int index)
Returns the stack frame at the given bytecode index. |
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 |
Constructor Detail |
---|
public StackMapTable(StackMapTable.Frame[] frames)
Method Detail |
---|
public java.lang.String name()
name
in interface BytecodeAttribute
public void write(BinaryOutputStream writer, java.util.Map<Constant.Info,java.lang.Integer> constantPool) throws java.io.IOException
BytecodeAttribute
write
in interface BytecodeAttribute
java.io.IOException
public void addPoolItems(java.util.Set<Constant.Info> constantPool)
BytecodeAttribute
addPoolItems
in interface BytecodeAttribute
public void print(java.io.PrintWriter output, java.util.Map<Constant.Info,java.lang.Integer> constantPool) throws java.io.IOException
BytecodeAttribute
print
in interface BytecodeAttribute
java.io.IOException
public StackMapTable.Frame frameAt(int index)
Code.bytecodes
.
index
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |