Class StackMapTableAttribute
- java.lang.Object
-
- org.jboss.classfilewriter.attributes.Attribute
-
- org.jboss.classfilewriter.attributes.StackMapTableAttribute
-
- All Implemented Interfaces:
WritableEntry
public class StackMapTableAttribute extends Attribute
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
Fields Modifier and Type Field Description private static int
FULL_FRAME
private ClassMethod
method
static java.lang.String
NAME
private static int
SAME_FRAME_EXTENDED
-
Constructor Summary
Constructors Constructor Description StackMapTableAttribute(ClassMethod classMethod, ConstPool constPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeData(ByteArrayDataOutputStream stream)
private void
writeFullFrame(java.io.DataOutputStream dstream, int offset, int position, StackFrame value)
writes a full_frame to the stack map tableprivate void
writeSameFrame(java.io.DataOutputStream dstream, int offset, int lastPos, StackFrame frame)
private void
writeSameLocals1Stack(java.io.DataOutputStream dstream, int offset, int lastPos, StackFrame frame)
-
-
-
Field Detail
-
FULL_FRAME
private static int FULL_FRAME
-
SAME_FRAME_EXTENDED
private static int SAME_FRAME_EXTENDED
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
method
private final ClassMethod method
-
-
Constructor Detail
-
StackMapTableAttribute
public StackMapTableAttribute(ClassMethod classMethod, ConstPool constPool)
-
-
Method Detail
-
writeData
public void writeData(ByteArrayDataOutputStream stream) throws java.io.IOException
-
writeSameLocals1Stack
private void writeSameLocals1Stack(java.io.DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws java.io.IOException
- Throws:
java.io.IOException
-
writeSameFrame
private void writeSameFrame(java.io.DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws java.io.IOException
- Throws:
java.io.IOException
-
writeFullFrame
private void writeFullFrame(java.io.DataOutputStream dstream, int offset, int position, StackFrame value) throws java.io.IOException
writes a full_frame to the stack map table- Throws:
java.io.IOException
-
-