Interface NewPrimitiveArrayInstruction

All Superinterfaces:
ClassFileElement, CodeElement, Instruction

public sealed interface NewPrimitiveArrayInstruction extends 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 Details

    • typeKind

      TypeKind typeKind()
      Returns the component type of the array.
      Returns:
      the component type of the array
    • of

      static NewPrimitiveArrayInstruction of(TypeKind typeKind)
      Returns a new primitive array instruction.
      Parameters:
      typeKind - the component type of the array
      Returns:
      a new primitive array instruction
      Throws:
      IllegalArgumentException - when the typeKind is not a legal primitive array component type