javassist.bytecode
public static class StackMapTable.Writer extends Object
| Constructor Summary | |
|---|---|
| Writer(int size)
Constructs a writer. | |
| Method Summary | |
|---|---|
| void | appendFrame(int offsetDelta, int[] tags, int[] data)
Writes a append_frame.
|
| void | chopFrame(int offsetDelta, int k)
Writes a chop_frame.
|
| void | fullFrame(int offsetDelta, int[] localTags, int[] localData, int[] stackTags, int[] stackData)
Writes a full_frame.
|
| void | sameFrame(int offsetDelta)
Writes a same_frame or a same_frame_extended. |
| void | sameLocals(int offsetDelta, int tag, int data)
Writes a same_locals_1_stack_item
or a same_locals_1_stack_item_extended.
|
| byte[] | toByteArray()
Returns the stack map table written out. |
Parameters: size the initial buffer size.
append_frame.
Parameters: tag locals[].tag.
The length of this array must be
either 1, 2, or 3. data locals[].cpool_index
if the tag is OBJECT,
or UNINIT.
Otherwise, this parameter is not used.
chop_frame.
Parameters: k the number of absent locals. 1, 2, or 3.
full_frame.
Parameters: localTags locals[].tag. localData locals[].cpool_index
if the tag is OBJECT,
or UNINIT.
Otherwise, this parameter is not used.stack[].tag. stackData stack[].cpool_index
if the tag is OBJECT,
or UNINIT.
Otherwise, this parameter is not used.
same_frame or a same_frame_extended.same_locals_1_stack_item
or a same_locals_1_stack_item_extended.
Parameters: tag stack[0].tag. data stack[0].cpool_index
if the tag is OBJECT,
or UNINIT.
Otherwise, this parameter is not used.