# Uses of Interface
java.lang.classfile.instruction.SwitchCase

Packages that use SwitchCasePREVIEW
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 SwitchCasePREVIEW in java.lang.classfilePREVIEW

  Method parameters in java.lang.classfilePREVIEW with type arguments of type SwitchCasePREVIEW
  Modifier and Type
  Method
  Description
  `default CodeBuilderPREVIEW`
  CodeBuilder.`lookupswitch(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by key match and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`lookupSwitchInstruction(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by key match and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`tableswitch(int low, int high, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`tableswitch(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  CodeBuilder.`tableSwitchInstruction(int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump

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

  Methods in java.lang.classfile.instructionPREVIEW that return SwitchCasePREVIEW
  Modifier and Type
  Method
  Description
  `static SwitchCasePREVIEW`
  SwitchCase.`of(int caseValue, LabelPREVIEW target)`
  Create a SwitchCasePREVIEW
  Methods in java.lang.classfile.instructionPREVIEW that return types with arguments of type SwitchCasePREVIEW
  Modifier and Type
  Method
  Description
  `List<SwitchCasePREVIEW>`
  LookupSwitchInstruction.`cases()`
  Returns the cases of the switch.
  `List<SwitchCasePREVIEW>`
  TableSwitchInstruction.`cases()`
  Returns the cases of the switch.
  Method parameters in java.lang.classfile.instructionPREVIEW with type arguments of type SwitchCasePREVIEW
  Modifier and Type
  Method
  Description
  `static LookupSwitchInstructionPREVIEW`
  LookupSwitchInstruction.`of(LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Returns a lookup switch instruction.
  `static TableSwitchInstructionPREVIEW`
  TableSwitchInstruction.`of(int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Returns a table switch instruction.