APIdia Launch Partner
Top Description Methods
java.lang.classfile.instruction

public sealed Interface NopInstruction

extends Instruction
permits UnboundNopInstruction
Known Direct Implementers
jdk.internal.classfile.impl.AbstractInstruction.UnboundNopInstruction
Imports
java.lang.classfile.CodeBuilder, .CodeElement, .CodeModel, .Instruction, .Opcode, jdk.internal.classfile.impl.AbstractInstruction

Models a nop instruction in the code array of a Code attribute. Delivered as a CodeElement when traversing the elements of a CodeModel.

A no-op instruction has no visible state.

Since
24
Java Virtual Machine Specification
6.5.nop nop
See Also
CodeBuilder::nop

Method Summary

Modifier and TypeMethod and Description
public static NopInstruction

Returns:

a no-op instruction
of
()

Returns a no-op instruction.

Inherited from java.lang.classfile.Instruction:
opcodesizeInBytes

Method Detail

ofback to summary
public static NopInstruction of()

Returns a no-op instruction.

Returns:NopInstruction

a no-op instruction