Interface NewReferenceArrayInstruction

All Superinterfaces:
ClassFileElement, CodeElement, Instruction

public sealed interface NewReferenceArrayInstruction extends Instruction
Models a anewarray invocation instruction in the code array of a Code attribute. Delivered as a CodeElement when traversing the elements of a CodeModel.
Since:
24
  • Method Details

    • componentType

      ClassEntry componentType()
      Returns the component type of the array.
      Returns:
      the component type of the array
    • of

      static NewReferenceArrayInstruction of(ClassEntry componentType)
      Returns a new reference array instruction.
      Parameters:
      componentType - the component type of the array
      Returns:
      a new reference array instruction