Preview
Second Preview of ClassFile API (JEP 466).
Programs can only use NewObjectInstruction
when preview features are enabled.
Preview features may be removed in a future release,
or upgraded to permanent features of the Java platform.
new
instruction in the code
array of a Code
attribute. Delivered as a CodeElement
when traversing the elements
of a CodeModel
.
Modifier and Type | Method and Description |
---|---|
public ClassEntry | |
public static NewObjectInstruction | Returns: a new object instructionthe type of object to create className)Returns a new object instruction. |
className | back to summary |
---|---|
public ClassEntry className() Returns the type of object to create.
|
of | back to summary |
---|---|
public static NewObjectInstruction of(ClassEntry className) Returns a new object instruction.
|