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 SummaryModifier and TypeMethodDescriptionReturns the type of object to create.static NewObjectInstructionof(ClassEntry className) Returns a new object instruction.Methods declared in interface java.lang.classfile.Instructionopcode, sizeInBytes
- 
Method Details- 
className
- 
ofReturns a new object instruction.- Parameters:
- className- the type of object to create
- Returns:
- a new object instruction
 
 
-