Interface NewObjectInstruction
- All Superinterfaces:
ClassFileElement
,CodeElement
,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 Summary
Modifier and TypeMethodDescriptionReturns the type of object to create.static NewObjectInstruction
of
(ClassEntry className) Returns a new object instruction.Methods declared in interface java.lang.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
className
-
of
Returns a new object instruction.- Parameters:
className
- the type of object to create- Returns:
- a new object instruction
-