Package gnu.bytecode
Class StackMapTableAttr
java.lang.Object
gnu.bytecode.Attribute
gnu.bytecode.MiscAttr
gnu.bytecode.StackMapTableAttr
Represents a "StackMapTable" attribute, as added in Java 6.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStackMapTableAttr
(byte[] data, CodeAttr code) Add a new StackMapTableAttr to a CodeAttr. -
Method Summary
Modifier and TypeMethodDescriptionvoid
emitStackMapEntry
(Label label, CodeAttr code) Emit type state for the given Label.void
print
(ClassTypeWriter dst) void
write
(DataOutputStream dstr) Write out the contents of the Attribute.Methods inherited from class gnu.bytecode.Attribute
addToFrontOf, assignConstants, assignConstants, count, get, getConstants, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAll
-
Field Details
-
compressStackMapTable
public static boolean compressStackMapTable
-
-
Constructor Details
-
StackMapTableAttr
public StackMapTableAttr() -
StackMapTableAttr
Add a new StackMapTableAttr to a CodeAttr.
-
-
Method Details
-
getMethod
-
write
Write out the contents of the Attribute. Does not write the 6-byte attribute header.- Overrides:
write
in classMiscAttr
- Throws:
IOException
-
emitStackMapEntry
Emit type state for the given Label. This must be called by strictly increasing position. This is handled automatically byCodeAttr.processFixups()
. -
print
-