Top Description Fields Constructors Methods
org.jboss.classfilewriter.attributes

public Class StackMapTableAttribute

extends Attribute
Class Inheritance
Imports
org.jboss.classfilewriter.ClassMethod, org.jboss.classfilewriter.code.CodeAttribute, .StackEntry, .StackEntryType, .StackFrame, .StackFrameType, org.jboss.classfilewriter.constpool.ConstPool, org.jboss.classfilewriter.util.ByteArrayDataOutputStream, .LazySize, java.io.DataOutputStream, .IOException, java.util.ArrayList, .List, .Map.Entry

A JDK 6 StackMap sttribute.

Todo

this will currently fall over if the code length, max locals or max stack is above 65535

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private static final int
private final ClassMethod
public static final String
private static final int
Inherited from org.jboss.classfilewriter.attributes.Attribute:
constPool

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private void
writeFullFrame(DataOutputStream dstream, int offset, int position, StackFrame value)

writes a full_frame to the stack map table

private void
writeSameFrame(DataOutputStream dstream, int offset, int lastPos, StackFrame frame)

private void
writeSameLocals1Stack(DataOutputStream dstream, int offset, int lastPos, StackFrame frame)

Inherited from org.jboss.classfilewriter.attributes.Attribute:
getNamewrite

Field Detail

FULL_FRAMEback to summary
private static final int FULL_FRAME
methodback to summary
private final ClassMethod method
NAMEback to summary
public static final String NAME
SAME_FRAME_EXTENDEDback to summary
private static final int SAME_FRAME_EXTENDED

Constructor Detail

StackMapTableAttributeback to summary
public StackMapTableAttribute(ClassMethod classMethod, ConstPool constPool)

Method Detail

writeDataback to summary
public void writeData(ByteArrayDataOutputStream stream) throws IOException

Implements abstract org.jboss.classfilewriter.attributes.Attribute.writeData.

Annotations
@Override
writeFullFrameback to summary
private void writeFullFrame(DataOutputStream dstream, int offset, int position, StackFrame value) throws IOException

writes a full_frame to the stack map table

writeSameFrameback to summary
private void writeSameFrame(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws IOException
writeSameLocals1Stackback to summary
private void writeSameLocals1Stack(DataOutputStream dstream, int offset, int lastPos, StackFrame frame) throws IOException