Interface NewPrimitiveArrayInstruction
- All Superinterfaces:
ClassFileElementPREVIEW,CodeElementPREVIEW,InstructionPREVIEW
NewPrimitiveArrayInstruction 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
newarray invocation instruction in the code
array of a Code attribute. Delivered as a CodeElementPREVIEW
when traversing the elements of a CodeModelPREVIEW.- Since:
- 22
-
Method Summary
Methods declared in interface java.lang.classfile.InstructionPREVIEW
opcode, sizeInBytes
-
Method Details
-
typeKind
-
of
Returns a new primitive array instruction.- Parameters:
typeKind- the component type of the array- Returns:
- a new primitive array instruction
- Throws:
IllegalArgumentException- when thetypeKindis not a legal primitive array component type
-
NewPrimitiveArrayInstructionwhen preview features are enabled.