Interface NewPrimitiveArrayInstruction
- All Superinterfaces:
ClassFileElement
,CodeElement
,Instruction
Models a
newarray
invocation instruction in the code
array of a Code
attribute. Delivered as a CodeElement
when traversing the elements of a CodeModel
.- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionstatic NewPrimitiveArrayInstruction
Returns a new primitive array instruction.typeKind()
Returns the component type of the array.Methods declared in interface java.lang.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
typeKind
TypeKind typeKind()Returns the component type of the array.- Returns:
- the component type of the array
-
of
Returns a new primitive array instruction.- Parameters:
typeKind
- the component type of the array- Returns:
- a new primitive array instruction
- Throws:
IllegalArgumentException
- when thetypeKind
is not a legal primitive array component type
-