public sealed interface StackMapFrameInfo
StackMapTable attribute (JVMS 4.7.4). A stack map frame must appear at the beginning of each basic block in a method (JVMS 4.10.1).BranchInstruction, or unreachable code right after an unconditional branch instruction like goto. The automatic stack map generation cannot handle unreachable code right after an unconditional jump; The ClassFile.DeadCodeOption allows substituting such code, or advanced users can provide their own stack maps for dead code.StackMapTable Attribute| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
StackMapFrameInfo.ObjectVerificationTypeInfo |
A stack value for an object type. |
static enum |
StackMapFrameInfo.SimpleVerificationTypeInfo |
A simple stack value. |
static interface |
StackMapFrameInfo.UninitializedVerificationTypeInfo |
An uninitialized stack value. |
static interface |
StackMapFrameInfo.VerificationTypeInfo |
The type of a stack or local variable value. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
frameType() |
Returns the raw u1 frame_type. |
List |
locals() |
Returns the expanded local variable types. |
static StackMapFrameInfo |
of |
Returns a new stack map frame. |
List |
stack() |
Returns the expanded operand stack types. |
Label |
target() |
Returns the frame target label. |
int frameType()
u1 frame_type.u1 frame_type
Label target()
List<StackMapFrameInfo.VerificationTypeInfo> locals()
List<StackMapFrameInfo.VerificationTypeInfo> stack()
static StackMapFrameInfo of(Label target, List<StackMapFrameInfo.VerificationTypeInfo> locals, List<StackMapFrameInfo.VerificationTypeInfo> stack)
target - the location of the framelocals - the complete list of frame localsstack - the complete frame stack
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/attribute/StackMapFrameInfo.html