Interface NewObjectInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,Instruction
Models a
where the
new instruction in the code array of a Code
attribute. Delivered as a CodeElement when traversing the elements
of a CodeModel.
A new object instruction is composite:
NewObjectInstruction(ClassEntry className)
className is a non-abstract class.- See Java Virtual Machine Specification:
-
6.5.new new
- Since:
- 24
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the type of object to create.static NewObjectInstructionof(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
-