Module java.base
Package java.lang.classfile.instructionPREVIEW

# Interface NopInstruction

All Superinterfaces:
  `ClassFileElementPREVIEW`, `CodeElementPREVIEW`, `InstructionPREVIEW`

public sealed interface NopInstruction extends InstructionPREVIEW
`NopInstruction` is a preview API of the Java platform.
Programs can only use `NopInstruction` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a `nop` invocation instruction in the `code` array of a `Code` attribute. Delivered as a `CodeElement`PREVIEW when traversing the elements of a `CodeModel`PREVIEW.

Since:
  22

- ## Method Summary

  Static Methods
  Modifier and Type
  Method
  Description
  `static NopInstructionPREVIEW`
  `of()`
  Returns a no-op instruction.

  ### Methods declared in interface java.lang.classfile.InstructionPREVIEW

  `opcode, sizeInBytes`

- ## Method Details

  - ### of

    static NopInstructionPREVIEW of()
    Returns a no-op instruction.
    Returns:
      a no-op instruction