Module org.glavo.classfile
Package org.glavo.classfile.instruction
Interface NewPrimitiveArrayInstruction
- All Superinterfaces:
ClassfileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundNewPrimitiveArrayInstruction,AbstractInstruction.UnboundNewPrimitiveArrayInstruction
public sealed interface NewPrimitiveArrayInstruction
extends Instruction
permits AbstractInstruction.BoundNewPrimitiveArrayInstruction, AbstractInstruction.UnboundNewPrimitiveArrayInstruction
Models a
newarray invocation instruction in the code
array of a Code attribute. Delivered as a CodeElement
when traversing the elements of a CodeModel.-
Method Summary
Modifier and TypeMethodDescriptionstatic NewPrimitiveArrayInstructionReturns a new primitive array instruction.typeKind()Returns the component type of the array.Methods inherited from interface org.glavo.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
-