public abstract class StackMapFrame extends Object
frame_type
or using an instanceof test.Modifier and Type | Class and Description |
---|---|
static class |
StackMapFrame.AppendFrame
A frame type of
append_frame , which means that the operand
stack is empty and the current locals are the same as the locals in the
previous frame, except that k additional locals are defined. |
static class |
StackMapFrame.ChopFrame
A frame type of
chop_frame , which means that the operand
stack is empty and the current locals are the same as the locals in
the previous frame, except that the k last locals are absent. |
static class |
StackMapFrame.FullFrame
A frame type of
full_frame , which declares all of its
locals and stack items. |
static class |
StackMapFrame.SameFrame
A frame type of
same_frame , which means that the frame
has exactly the same locals as the previous stack map frame and that
the number of stack items is zero. |
static class |
StackMapFrame.SameFrameExtended
A frame type of
same_frame_extended , which means the frame
has exactly the same locals as the previous stack map frame and that the
number of stack items is zero. |
static class |
StackMapFrame.SameLocals1StackItemFrame
A frame type of
same_locals_1_stack_item_frame , which means
that the frame has exactly the same locals as the previous stack map
frame and that the number of stack items is 1. |
static class |
StackMapFrame.SameLocals1StackItemFrameExtended
A frame type of
same_locals_1_stack_item_frame_extended ,
which means that the frame has exactly the same locals as the previous
stack map frame and that the number of stack items is 1. |
Modifier and Type | Method and Description |
---|---|
int |
getFrameType()
Returns the frame_type for this frame.
|
abstract int |
getOffsetDelta()
Returns the
offset_delta for this frame type. |
public final int getFrameType()
public abstract int getOffsetDelta()
offset_delta
for this frame type. From the
Java Virtual Machine Specification, section 4.8.4:
offset_delta
, that is used to calulate the actual byte
code offset at which it applies. The byte code offset at which the frame
applies is given by adding 1 + offset_delta
to the offset of
the previous frame, unless the previous frame is the initial frame of
the method, in which case the byte code offset is offset_delta
."