Module io.smallrye.classfile
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.- 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 inherited from interface io.smallrye.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
className
ClassEntry className()Returns the type of object to create.- Returns:
- the type of object to create
-
of
Returns a new object instruction.- Parameters:
className- the type of object to create- Returns:
- a new object instruction
-