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 intFULL_FRAMEprivate ClassMethodmethodstatic java.lang.StringNAMEprivate static intSAME_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 voidwriteData(ByteArrayDataOutputStream stream)private voidwriteFullFrame(java.io.DataOutputStream dstream, int offset, int position, StackFrame value)writes a full_frame to the stack map tableprivate voidwriteSameFrame(java.io.DataOutputStream dstream, int offset, int lastPos, StackFrame frame)private voidwriteSameLocals1Stack(java.io.DataOutputStream dstream, int offset, int lastPos, StackFrame frame)
-
-
-
Field Detail
-
FULL_FRAME
private static final int FULL_FRAME
- See Also:
- Constant Field Values
-
SAME_FRAME_EXTENDED
private static final int SAME_FRAME_EXTENDED
- See Also:
- Constant Field Values
-
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.IOExceptionwrites a full_frame to the stack map table- Throws:
java.io.IOException
-
-