- All Superinterfaces:
ClassfileElement,CodeElement,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundNewObjectInstruction,AbstractInstruction.UnboundNewObjectInstruction
public sealed interface NewObjectInstruction
extends Instruction
permits 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 Summary
Modifier and TypeMethodDescriptionReturns the type of object to create.static NewObjectInstructionof(ClassEntry className) Returns a new object instruction.Methods inherited from interface org.glavo.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
-