Class StackMapFrame
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.StackMapFrame
- All Implemented Interfaces:
IStackMapFrame
Default implementation of IStackMapFrame
-
Constructor Summary
ConstructorDescriptionStackMapFrame(byte[] classFileBytes, IConstantPool constantPool, int offset)
Constructor for StackMapFrame. -
Method Summary
Modifier and TypeMethodDescriptionint
Answer back the frame type for this entry.Answer back verification infos for the defined locals.int
Answer back the number of locals.int
Answer back the number of stack itemsint
Answer back the offset delta.Answer back the verification infos for the stack items.
-
Constructor Details
-
StackMapFrame
public StackMapFrame(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatExceptionConstructor for StackMapFrame.- Parameters:
classFileBytes
-constantPool
-offset
-- Throws:
ClassFormatException
-
-
Method Details
-
getFrameType
public int getFrameType()Description copied from interface:IStackMapFrame
Answer back the frame type for this entry.Type Range SAME 0-63 SAME_LOCALS_1_STACK_ITEM 64-127 SAME_LOCALS_1_STACK_ITEM_EXTENDED 247 CHOP 248-250 SAME_FRAME_EXTENDED 251 APPEND 252-254 FULL_FRAME 255 - Specified by:
getFrameType
in interfaceIStackMapFrame
- Returns:
- the frame type for this entry
-
getLocals
Description copied from interface:IStackMapFrame
Answer back verification infos for the defined locals.This is defined only for frame types APPEND and FULL_FRAME.
- Specified by:
getLocals
in interfaceIStackMapFrame
- Returns:
- verification infos for the defined locals
-
getNumberOfLocals
public int getNumberOfLocals()Description copied from interface:IStackMapFrame
Answer back the number of locals.This is defined only for the frame type FULL_FRAME.
- Specified by:
getNumberOfLocals
in interfaceIStackMapFrame
- Returns:
- the number of locals
-
getNumberOfStackItems
public int getNumberOfStackItems()Description copied from interface:IStackMapFrame
Answer back the number of stack itemsThis is defined only for the frame types SAME_LOCALS_1_STACK_ITEM, SAME_LOCALS_1_STACK_ITEM_EXTENDED and FULL_FRAME. For SAME_LOCALS_1_STACK_ITEM and SAME_LOCALS_1_STACK_ITEM_EXTENDED, the answer is implicitely 1.
- Specified by:
getNumberOfStackItems
in interfaceIStackMapFrame
- Returns:
- the number of stack items
-
getOffsetDelta
public int getOffsetDelta()Description copied from interface:IStackMapFrame
Answer back the offset delta.This is not defined only for the frame types SAME and SAME_LOCALS_1_STACK_ITEM.
- Specified by:
getOffsetDelta
in interfaceIStackMapFrame
- Returns:
- the offset delta
-
getStackItems
Description copied from interface:IStackMapFrame
Answer back the verification infos for the stack items.- Specified by:
getStackItems
in interfaceIStackMapFrame
- Returns:
- the verification infos for the stack items
-