Interface NewObjectInstruction

All Superinterfaces:
ClassFileElement, CodeElement, Instruction

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

    • className

      ClassEntry className()
      Returns the type of object to create.
      Returns:
      the type of object to create
    • of

      static NewObjectInstruction of(ClassEntry className)
      Returns a new object instruction.
      Parameters:
      className - the type of object to create
      Returns:
      a new object instruction