- All Superinterfaces:
ClassFileElementPREVIEW
,CodeElementPREVIEW
,InstructionPREVIEW
StackInstruction
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 a stack manipulation instruction in the
code
array of a
Code
attribute. Corresponding opcodes will have a kind
of
Opcode.Kind.STACK
PREVIEW. Delivered as a CodeElement
PREVIEW when
traversing the elements of a CodeModel
PREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionstatic StackInstructionPREVIEW
Returns a stack manipulation instruction.Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
of
Returns a stack manipulation instruction.- Parameters:
op
- the opcode for the specific type of stack instruction, which must be of kindOpcode.Kind.STACK
PREVIEW- Returns:
- a stack manipulation instruction
-
StackInstruction
when preview features are enabled.