Interface NewObjectInstruction

All Superinterfaces:
ClassfileElement, CodeElement, Instruction
All Known Implementing Classes:
AbstractInstruction.BoundNewObjectInstruction, AbstractInstruction.UnboundNewObjectInstruction

Models a new instruction in the code array of a Code attribute. Delivered as a CodeElement when traversing the elements of a CodeModel.
  • 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