Package gnu.bytecode
Class StackMapTableAttr
- java.lang.Object
-
- gnu.bytecode.Attribute
-
- gnu.bytecode.MiscAttr
-
- gnu.bytecode.StackMapTableAttr
-
public class StackMapTableAttr extends MiscAttr
Represents a "StackMapTable" attribute, as added in Java 6.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
compressStackMapTable
-
Constructor Summary
Constructors Constructor Description StackMapTableAttr()
StackMapTableAttr(byte[] data, CodeAttr code)
Add a new StackMapTableAttr to a CodeAttr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emitStackMapEntry(Label label, CodeAttr code)
Emit type state for the given Label.Method
getMethod()
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
-
-
-
-
Constructor Detail
-
StackMapTableAttr
public StackMapTableAttr()
-
StackMapTableAttr
public StackMapTableAttr(byte[] data, CodeAttr code)
Add a new StackMapTableAttr to a CodeAttr.
-
-
Method Detail
-
getMethod
public Method getMethod()
-
write
public void write(DataOutputStream dstr) throws IOException
Write out the contents of the Attribute. Does not write the 6-byte attribute header.- Overrides:
write
in classMiscAttr
- Throws:
IOException
-
emitStackMapEntry
public void emitStackMapEntry(Label label, CodeAttr code)
Emit type state for the given Label. This must be called by strictly increasing position. This is handled automatically byCodeAttr.processFixups()
.
-
print
public void print(ClassTypeWriter dst)
-
-