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
Modifier and TypeInterfaceDescriptionstatic interface
Preview.A stack value for an object type.static enum
Preview.A simple stack value.static interface
Preview.An uninitialized stack value.static interface
Preview.The type of a stack value. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the frame compact form type.locals()
Returns the expanded local variable types.static StackMapFrameInfoPREVIEW
of
(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
-
StackMapFrameInfo
when preview features are enabled.