Interface StackMapFrameInfo
public sealed interface StackMapFrameInfo
StackMapFrameInfo is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models stack map frame of
StackMapTable attribute 4.7.4.- Since:
- 22
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePreview.A stack value for an object type.static enumPreview.A simple stack value.static interfacePreview.An uninitialized stack value.static interfacePreview.The type of a stack value. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the frame compact form type.locals()Returns the expanded local variable types.static StackMapFrameInfoPREVIEWof(LabelPREVIEW target, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> locals, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> stack) Returns a new stack map frame.stack()Returns the expanded stack types.target()Returns the frame target label.
-
Method Details
-
frameType
int frameType()Returns the frame compact form type.- Returns:
- the frame compact form type
-
target
-
locals
Returns the expanded local variable types.- Returns:
- the expanded local variable types
-
stack
Returns the expanded stack types.- Returns:
- the expanded stack types
-
of
static StackMapFrameInfoPREVIEW of(LabelPREVIEW target, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> locals, List<StackMapFrameInfo.VerificationTypeInfoPREVIEW> stack) Returns a new stack map frame.- Parameters:
target- the location of the framelocals- the complete list of frame localsstack- the complete frame stack- Returns:
- a new stack map frame
-
StackMapFrameInfowhen preview features are enabled.