Module org.glavo.classfile
Package org.glavo.classfile.instruction
Interface NewReferenceArrayInstruction
- All Superinterfaces:
ClassfileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundNewReferenceArrayInstruction,AbstractInstruction.UnboundNewReferenceArrayInstruction
public sealed interface NewReferenceArrayInstruction
extends Instruction
permits AbstractInstruction.BoundNewReferenceArrayInstruction, AbstractInstruction.UnboundNewReferenceArrayInstruction
Models a
anewarray 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 TypeMethodDescriptionReturns the component type of the array.static NewReferenceArrayInstructionof(ClassEntry componentType) Returns a new reference array instruction.Methods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
componentType
ClassEntry componentType()Returns the component type of the array.- Returns:
- the component type of the array
-
of
Returns a new reference array instruction.- Parameters:
componentType- the component type of the array- Returns:
- a new reference array instruction
-