Class StackMapTableAttribute
java.lang.Object
org.jboss.classfilewriter.attributes.Attribute
org.jboss.classfilewriter.attributes.StackMapTableAttribute
- All Implemented Interfaces:
WritableEntry
A JDK 6 StackMap sttribute.
TODO: this will currently fall over if the code length, max locals or max stack is above 65535
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final ClassMethodstatic final Stringprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteData(ByteArrayDataOutputStream stream) private voidwriteFullFrame(DataOutputStream dstream, int offset, int position, StackFrame value) writes a full_frame to the stack map tableprivate voidwriteSameFrame(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) private voidwriteSameLocals1Stack(DataOutputStream dstream, int offset, int lastPos, StackFrame frame)
-
Field Details
-
FULL_FRAME
private static final int FULL_FRAME- See Also:
-
SAME_FRAME_EXTENDED
private static final int SAME_FRAME_EXTENDED- See Also:
-
NAME
- See Also:
-
method
-
-
Constructor Details
-
StackMapTableAttribute
-
-
Method Details
-
writeData
- Specified by:
writeDatain classAttribute- Throws:
IOException
-
writeSameLocals1Stack
private void writeSameLocals1Stack(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws IOException - Throws:
IOException
-
writeSameFrame
private void writeSameFrame(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws IOException - Throws:
IOException
-
writeFullFrame
private void writeFullFrame(DataOutputStream dstream, int offset, int position, StackFrame value) throws IOException writes a full_frame to the stack map table- Throws:
IOException
-