# Uses of Enum Class
java.lang.classfile.Opcode

Packages that use OpcodePREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

- ## Uses of OpcodePREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return OpcodePREVIEW
  Modifier and Type
  Method
  Description
  `OpcodePREVIEW`
  Instruction.`opcode()`
  Returns the opcode of this instruction.
  `static OpcodePREVIEW`
  Opcode.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static OpcodePREVIEW[]`
  Opcode.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in java.lang.classfilePREVIEW with parameters of type OpcodePREVIEW
  Modifier and Type
  Method
  Description
  `default CodeBuilderPREVIEW`
  CodeBuilder.`branchInstruction(OpcodePREVIEW op, LabelPREVIEW target)`
  Generate a branch instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`constantInstruction(OpcodePREVIEW opcode, ConstantDesc value)`
  Generate an instruction pushing a constant onto the operand stack
  `default CodeBuilderPREVIEW`
  CodeBuilder.`fieldInstruction(OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref)`
  Generate an instruction to access a field
  `default CodeBuilderPREVIEW`
  CodeBuilder.`fieldInstruction(OpcodePREVIEW opcode, ClassDesc owner, String name, ClassDesc type)`
  Generate an instruction to access a field
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifThen(OpcodePREVIEW opcode, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler)`
  Add an "if-then" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.
  `default CodeBuilderPREVIEW`
  CodeBuilder.`ifThenElse(OpcodePREVIEW opcode, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler)`
  Add an "if-then-else" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.
  `default CodeBuilderPREVIEW`
  CodeBuilder.`invokeInstruction(OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref)`
  Generate an instruction to invoke a method or constructor
  `default CodeBuilderPREVIEW`
  CodeBuilder.`invokeInstruction(OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface)`
  Generate an instruction to invoke a method or constructor
  `default CodeBuilderPREVIEW`
  CodeBuilder.`monitorInstruction(OpcodePREVIEW opcode)`
  Generate a monitor instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`operatorInstruction(OpcodePREVIEW opcode)`
  Generate an operator instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`stackInstruction(OpcodePREVIEW opcode)`
  Generate a stack manipulating instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`typeCheckInstruction(OpcodePREVIEW opcode, ClassEntryPREVIEW type)`
  Generate a type checking instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`typeCheckInstruction(OpcodePREVIEW opcode, ClassDesc type)`
  Generate a type checking instruction

- ## Uses of OpcodePREVIEW in java.lang.classfile.instructionPREVIEW

  Methods in java.lang.classfile.instructionPREVIEW with parameters of type OpcodePREVIEW
  Modifier and Type
  Method
  Description
  `static ArrayLoadInstructionPREVIEW`
  ArrayLoadInstruction.`of(OpcodePREVIEW op)`
  Returns an array load instruction.
  `static ArrayStoreInstructionPREVIEW`
  ArrayStoreInstruction.`of(OpcodePREVIEW op)`
  Returns an array store instruction.
  `static BranchInstructionPREVIEW`
  BranchInstruction.`of(OpcodePREVIEW op, LabelPREVIEW target)`
  Returns a branch instruction.
  `static ConvertInstructionPREVIEW`
  ConvertInstruction.`of(OpcodePREVIEW op)`
  Returns a conversion instruction.
  `static DiscontinuedInstruction.JsrInstructionPREVIEW`
  DiscontinuedInstruction.JsrInstruction.`of(OpcodePREVIEW op, LabelPREVIEW target)`
  Returns a JSR instruction.
  `static DiscontinuedInstruction.RetInstructionPREVIEW`
  DiscontinuedInstruction.RetInstruction.`of(OpcodePREVIEW op, int slot)`
  Returns a RET or RET_W instruction.
  `static FieldInstructionPREVIEW`
  FieldInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType)`
  Returns a field access instruction.
  `static FieldInstructionPREVIEW`
  FieldInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type)`
  Returns a field access instruction.
  `static FieldInstructionPREVIEW`
  FieldInstruction.`of(OpcodePREVIEW op, FieldRefEntryPREVIEW field)`
  Returns a field access instruction.
  `static InvokeInstructionPREVIEW`
  InvokeInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, NameAndTypeEntryPREVIEW nameAndType, boolean isInterface)`
  Returns an invocation instruction.
  `static InvokeInstructionPREVIEW`
  InvokeInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW owner, Utf8EntryPREVIEW name, Utf8EntryPREVIEW type, boolean isInterface)`
  Returns an invocation instruction.
  `static InvokeInstructionPREVIEW`
  InvokeInstruction.`of(OpcodePREVIEW op, MemberRefEntryPREVIEW method)`
  Returns an invocation instruction.
  `static LoadInstructionPREVIEW`
  LoadInstruction.`of(OpcodePREVIEW op, int slot)`
  Returns a local variable load instruction.
  `static MonitorInstructionPREVIEW`
  MonitorInstruction.`of(OpcodePREVIEW op)`
  Returns a monitor instruction.
  `static OperatorInstructionPREVIEW`
  OperatorInstruction.`of(OpcodePREVIEW op)`
  Returns an operator instruction.
  `static ReturnInstructionPREVIEW`
  ReturnInstruction.`of(OpcodePREVIEW op)`
  Returns a return instruction.
  `static StackInstructionPREVIEW`
  StackInstruction.`of(OpcodePREVIEW op)`
  Returns a stack manipulation instruction.
  `static StoreInstructionPREVIEW`
  StoreInstruction.`of(OpcodePREVIEW op, int slot)`
  Returns a local variable store instruction.
  `static TypeCheckInstructionPREVIEW`
  TypeCheckInstruction.`of(OpcodePREVIEW op, ClassEntryPREVIEW type)`
  Returns a type check instruction.
  `static TypeCheckInstructionPREVIEW`
  TypeCheckInstruction.`of(OpcodePREVIEW op, ClassDesc type)`
  Returns a type check instruction.
  `static ConstantInstruction.ArgumentConstantInstructionPREVIEW`
  ConstantInstruction.`ofArgument(OpcodePREVIEW op, int value)`
  Returns an argument constant instruction.
  `static ConstantInstruction.IntrinsicConstantInstructionPREVIEW`
  ConstantInstruction.`ofIntrinsic(OpcodePREVIEW op)`
  Returns an intrinsic constant instruction.
  `static ConstantInstruction.LoadConstantInstructionPREVIEW`
  ConstantInstruction.`ofLoad(OpcodePREVIEW op, LoadableConstantEntryPREVIEW constant)`
  Returns a load constant instruction.