Package Summary Overview Summary

Module java.base
Package java.lang.classfilePREVIEW

# Interface CodeBuilder

All Superinterfaces:
  `ClassFileBuilderPREVIEW<CodeElementPREVIEW, CodeBuilderPREVIEW>` , `Consumer<CodeElementPREVIEW>`

All Known Subinterfaces:
  `CodeBuilder.BlockCodeBuilderPREVIEW`

public sealed interface CodeBuilder extends ClassFileBuilderPREVIEW<CodeElementPREVIEW, CodeBuilderPREVIEW> permits CodeBuilder.BlockCodeBuilderPREVIEW(not exhaustive)
`CodeBuilder` is a preview API of the Java platform.
Programs can only use `CodeBuilder` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A builder for code attributes (method bodies). Builders are not created directly; they are passed to handlers by methods such as `MethodBuilder.withCode(Consumer)`PREVIEW or to code transforms. The elements of a code can be specified abstractly, by passing a `CodeElement`PREVIEW to `ClassFileBuilder.with(ClassFileElement)`PREVIEW or concretely by calling the various `withXxx` methods.

Since:
  22
See Also:
  - `CodeTransform`PREVIEW

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static interface`
  `CodeBuilder.BlockCodeBuilderPREVIEW`
  Preview.
  A builder for blocks of code.
  `static interface`
  `CodeBuilder.CatchBuilderPREVIEW`
  Preview.
  A builder to add catch blocks.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default CodeBuilderPREVIEW`
  `aaload()`
  Generate an instruction to load a reference from an array
  `default CodeBuilderPREVIEW`
  `aastore()`
  Generate an instruction to store into a reference array
  `default CodeBuilderPREVIEW`
  `aconst_null()`
  Generate an instruction pushing the null object reference onto the operand stack
  `int`
  `allocateLocal (TypeKindPREVIEW typeKind)`
  Returns the local variable slot of a fresh local variable.
  `default CodeBuilderPREVIEW`
  `aload (int slot)`
  Generate an instruction to load a reference from a local variable
  `default CodeBuilderPREVIEW`
  `anewarray (ClassEntryPREVIEW classEntry)`
  Generate an instruction to create a new array of reference
  `default CodeBuilderPREVIEW`
  `anewarray (ClassDesc className)`
  Generate an instruction to create a new array of reference
  `default CodeBuilderPREVIEW`
  `areturn()`
  Generate an instruction to return a reference from the method
  `default CodeBuilderPREVIEW`
  `arraylength()`
  Generate an instruction to get length of an array
  `default CodeBuilderPREVIEW`
  `arrayLoadInstruction (TypeKindPREVIEW tk)`
  Generate an instruction to load from an array
  `default CodeBuilderPREVIEW`
  `arrayStoreInstruction (TypeKindPREVIEW tk)`
  Generate an instruction to store into an array
  `default CodeBuilderPREVIEW`
  `astore (int slot)`
  Generate an instruction to store a reference into a local variable
  `default CodeBuilderPREVIEW`
  `athrow()`
  Generate an instruction to throw an exception or error
  `default CodeBuilderPREVIEW`
  `baload()`
  Generate an instruction to load a byte from a array
  `default CodeBuilderPREVIEW`
  `bastore()`
  Generate an instruction to store into a byte array
  `default CodeBuilderPREVIEW`
  `bipush (int b)`
  Generate an instruction pushing a byte onto the operand stack
  `default CodeBuilderPREVIEW`
  `block (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> handler)`
  Add a lexical block to the method being built.
  `default CodeBuilderPREVIEW`
  `branchInstruction (OpcodePREVIEW op, LabelPREVIEW target)`
  Generate a branch instruction
  `default CodeBuilderPREVIEW`
  `caload()`
  Generate an instruction to load a char from an array
  `default CodeBuilderPREVIEW`
  `castore()`
  Generate an instruction to store into a char array
  `default CodeBuilderPREVIEW`
  `characterRange (LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags)`
  Declare a character range entry
  `default CodeBuilderPREVIEW`
  `checkcast (ClassEntryPREVIEW type)`
  Generate an instruction to check whether an object is of the given type
  `default CodeBuilderPREVIEW`
  `checkcast (ClassDesc type)`
  Generate an instruction to check whether an object is of the given type
  `default CodeBuilderPREVIEW`
  `constantInstruction (OpcodePREVIEW opcode, ConstantDesc value)`
  Generate an instruction pushing a constant onto the operand stack
  `default CodeBuilderPREVIEW`
  `constantInstruction (ConstantDesc value)`
  Generate an instruction pushing a constant onto the operand stack
  `default CodeBuilderPREVIEW`
  `convertInstruction (TypeKindPREVIEW fromType, TypeKindPREVIEW toType)`
  Generate a type converting instruction
  `default CodeBuilderPREVIEW`
  `d2f()`
  Generate an instruction to convert a double into a float
  `default CodeBuilderPREVIEW`
  `d2i()`
  Generate an instruction to convert a double into an int
  `default CodeBuilderPREVIEW`
  `d2l()`
  Generate an instruction to convert a double into a long
  `default CodeBuilderPREVIEW`
  `dadd()`
  Generate an instruction to add a double
  `default CodeBuilderPREVIEW`
  `daload()`
  Generate an instruction to load a double from an array
  `default CodeBuilderPREVIEW`
  `dastore()`
  Generate an instruction to store into a double array
  `default CodeBuilderPREVIEW`
  `dcmpg()`
  Generate an instruction to add a double
  `default CodeBuilderPREVIEW`
  `dcmpl()`
  Generate an instruction to compare doubles
  `default CodeBuilderPREVIEW`
  `dconst_0()`
  Generate an instruction pushing double constant 0 onto the operand stack
  `default CodeBuilderPREVIEW`
  `dconst_1()`
  Generate an instruction pushing double constant 1 onto the operand stack
  `default CodeBuilderPREVIEW`
  `ddiv()`
  Generate an instruction to divide doubles
  `default CodeBuilderPREVIEW`
  `dload (int slot)`
  Generate an instruction to load a double from a local variable
  `default CodeBuilderPREVIEW`
  `dmul()`
  Generate an instruction to multiply doubles
  `default CodeBuilderPREVIEW`
  `dneg()`
  Generate an instruction to negate a double
  `default CodeBuilderPREVIEW`
  `drem()`
  Generate an instruction to calculate double remainder
  `default CodeBuilderPREVIEW`
  `dreturn()`
  Generate an instruction to return a double from the method
  `default CodeBuilderPREVIEW`
  `dstore (int slot)`
  Generate an instruction to store a double into a local variable
  `default CodeBuilderPREVIEW`
  `dsub()`
  Generate an instruction to subtract doubles
  `default CodeBuilderPREVIEW`
  `dup()`
  Generate an instruction to duplicate the top operand stack value
  `default CodeBuilderPREVIEW`
  `dup_x1()`
  Generate an instruction to duplicate the top operand stack value and insert two values down
  `default CodeBuilderPREVIEW`
  `dup_x2()`
  Generate an instruction to duplicate the top operand stack value and insert two or three values down
  `default CodeBuilderPREVIEW`
  `dup2()`
  Generate an instruction to duplicate the top one or two operand stack value
  `default CodeBuilderPREVIEW`
  `dup2_x1()`
  Generate an instruction to duplicate the top one or two operand stack values and insert two or three values down
  `default CodeBuilderPREVIEW`
  `dup2_x2()`
  Generate an instruction to duplicate the top one or two operand stack values and insert two, three, or four values down
  `LabelPREVIEW`
  `endLabel()`
  Returns the label associated with the end of the current block.
  `default CodeBuilderPREVIEW`
  `exceptionCatch (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  `exceptionCatch (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassDesc catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  `exceptionCatch (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType)`
  Declare an exception table entry
  `default CodeBuilderPREVIEW`
  `exceptionCatchAll (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler)`
  Declare an exception table entry catching all exceptions and errors
  `default CodeBuilderPREVIEW`
  `f2d()`
  Generate an instruction to convert a float into a double
  `default CodeBuilderPREVIEW`
  `f2i()`
  Generate an instruction to convert a float into an int
  `default CodeBuilderPREVIEW`
  `f2l()`
  Generate an instruction to convert a float into a long
  `default CodeBuilderPREVIEW`
  `fadd()`
  Generate an instruction to add a float
  `default CodeBuilderPREVIEW`
  `faload()`
  Generate an instruction to load a float from an array
  `default CodeBuilderPREVIEW`
  `fastore()`
  Generate an instruction to store into a float array
  `default CodeBuilderPREVIEW`
  `fcmpg()`
  Generate an instruction to compare floats
  `default CodeBuilderPREVIEW`
  `fcmpl()`
  Generate an instruction to compare floats
  `default CodeBuilderPREVIEW`
  `fconst_0()`
  Generate an instruction pushing float constant 0 onto the operand stack
  `default CodeBuilderPREVIEW`
  `fconst_1()`
  Generate an instruction pushing float constant 1 onto the operand stack
  `default CodeBuilderPREVIEW`
  `fconst_2()`
  Generate an instruction pushing float constant 2 onto the operand stack
  `default CodeBuilderPREVIEW`
  `fdiv()`
  Generate an instruction to divide floats
  `default CodeBuilderPREVIEW`
  `fieldInstruction (OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref)`
  Generate an instruction to access a field
  `default CodeBuilderPREVIEW`
  `fieldInstruction (OpcodePREVIEW opcode, ClassDesc owner, String name, ClassDesc type)`
  Generate an instruction to access a field
  `default CodeBuilderPREVIEW`
  `fload (int slot)`
  Generate an instruction to load a float from a local variable
  `default CodeBuilderPREVIEW`
  `fmul()`
  Generate an instruction to multiply floats
  `default CodeBuilderPREVIEW`
  `fneg()`
  Generate an instruction to negate a float
  `default CodeBuilderPREVIEW`
  `frem()`
  Generate an instruction to calculate floats remainder
  `default CodeBuilderPREVIEW`
  `freturn()`
  Generate an instruction to return a float from the method
  `default CodeBuilderPREVIEW`
  `fstore (int slot)`
  Generate an instruction to store a float into a local variable
  `default CodeBuilderPREVIEW`
  `fsub()`
  Generate an instruction to subtract floats
  `default CodeBuilderPREVIEW`
  `getfield (FieldRefEntryPREVIEW ref)`
  Generate an instruction to fetch field from an object
  `default CodeBuilderPREVIEW`
  `getfield (ClassDesc owner, String name, ClassDesc type)`
  Generate an instruction to fetch field from an object
  `default CodeBuilderPREVIEW`
  `getstatic (FieldRefEntryPREVIEW ref)`
  Generate an instruction to get static field from a class
  `default CodeBuilderPREVIEW`
  `getstatic (ClassDesc owner, String name, ClassDesc type)`
  Generate an instruction to get static field from a class
  `default CodeBuilderPREVIEW`
  `goto_ (LabelPREVIEW target)`
  Generate an instruction to branch always
  `default CodeBuilderPREVIEW`
  `goto_w (LabelPREVIEW target)`
  Generate an instruction to branch always with wide index
  `default CodeBuilderPREVIEW`
  `i2b()`
  Generate an instruction to convert an int into a byte
  `default CodeBuilderPREVIEW`
  `i2c()`
  Generate an instruction to convert an int into a char
  `default CodeBuilderPREVIEW`
  `i2d()`
  Generate an instruction to convert an int into a double
  `default CodeBuilderPREVIEW`
  `i2f()`
  Generate an instruction to convert an int into a float
  `default CodeBuilderPREVIEW`
  `i2l()`
  Generate an instruction to convert an int into a long
  `default CodeBuilderPREVIEW`
  `i2s()`
  Generate an instruction to convert an int into a short
  `default CodeBuilderPREVIEW`
  `iadd()`
  Generate an instruction to add an int
  `default CodeBuilderPREVIEW`
  `iaload()`
  Generate an instruction to load a int from an array
  `default CodeBuilderPREVIEW`
  `iand()`
  Generate an instruction to calculate boolean AND of ints
  `default CodeBuilderPREVIEW`
  `iastore()`
  Generate an instruction to store into an int array
  `default CodeBuilderPREVIEW`
  `iconst_0()`
  Generate an instruction pushing int constant 0 onto the operand stack
  `default CodeBuilderPREVIEW`
  `iconst_1()`
  Generate an instruction pushing int constant 1 onto the operand stack
  `default CodeBuilderPREVIEW`
  `iconst_2()`
  Generate an instruction pushing int constant 2 onto the operand stack
  `default CodeBuilderPREVIEW`
  `iconst_3()`
  Generate an instruction pushing int constant 3 onto the operand stack
  `default CodeBuilderPREVIEW`
  `iconst_4()`
  Generate an instruction pushing int constant 4 onto the operand stack
  `default CodeBuilderPREVIEW`
  `iconst_5()`
  Generate an instruction pushing int constant 5 onto the operand stack
  `default CodeBuilderPREVIEW`
  `iconst_m1()`
  Generate an instruction pushing int constant -1 onto the operand stack
  `default CodeBuilderPREVIEW`
  `idiv()`
  Generate an instruction to divide ints
  `default CodeBuilderPREVIEW`
  `if_acmpeq (LabelPREVIEW target)`
  Generate an instruction to branch if reference comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_acmpne (LabelPREVIEW target)`
  Generate an instruction to branch if reference comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_icmpeq (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_icmpge (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_icmpgt (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_icmple (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_icmplt (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_icmpne (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison succeeds
  `default CodeBuilderPREVIEW`
  `if_nonnull (LabelPREVIEW target)`
  Generate an instruction to branch if reference is not null
  `default CodeBuilderPREVIEW`
  `if_null (LabelPREVIEW target)`
  Generate an instruction to branch if reference is null
  `default CodeBuilderPREVIEW`
  `ifeq (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  `ifge (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  `ifgt (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  `ifle (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  `iflt (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  `ifne (LabelPREVIEW target)`
  Generate an instruction to branch if int comparison with zero succeeds
  `default CodeBuilderPREVIEW`
  `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`
  `ifThen (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler)`
  Add an "if-then" block that is conditional on the boolean value on top of the operand stack.
  `default CodeBuilderPREVIEW`
  `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`
  `ifThenElse (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler)`
  Add an "if-then-else" block that is conditional on the boolean value on top of the operand stack.
  `default CodeBuilderPREVIEW`
  `iinc (int slot, int val)`
  Generate an instruction to increment a local variable by a constant
  `default CodeBuilderPREVIEW`
  `iload (int slot)`
  Generate an instruction to load an int from a local variable
  `default CodeBuilderPREVIEW`
  `imul()`
  Generate an instruction to multiply ints
  `default CodeBuilderPREVIEW`
  `incrementInstruction (int slot, int val)`
  Generate an instruction to increment a local variable by a constant
  `default CodeBuilderPREVIEW`
  `ineg()`
  Generate an instruction to negate an int
  `default CodeBuilderPREVIEW`
  `instanceof_ (ClassEntryPREVIEW target)`
  Generate an instruction to determine if an object is of the given type
  `default CodeBuilderPREVIEW`
  `instanceof_ (ClassDesc target)`
  Generate an instruction to determine if an object is of the given type
  `default CodeBuilderPREVIEW`
  `invokedynamic (InvokeDynamicEntryPREVIEW ref)`
  Generate an instruction to invoke a dynamically-computed call site
  `default CodeBuilderPREVIEW`
  `invokedynamic (DynamicCallSiteDesc ref)`
  Generate an instruction to invoke a dynamically-computed call site
  `default CodeBuilderPREVIEW`
  `invokeDynamicInstruction (InvokeDynamicEntryPREVIEW ref)`
  Generate an instruction to invoke a dynamically-computed call site
  `default CodeBuilderPREVIEW`
  `invokeDynamicInstruction (DynamicCallSiteDesc desc)`
  Generate an instruction to invoke a dynamically-computed call site
  `default CodeBuilderPREVIEW`
  `invokeInstruction (OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref)`
  Generate an instruction to invoke a method or constructor
  `default CodeBuilderPREVIEW`
  `invokeInstruction (OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface)`
  Generate an instruction to invoke a method or constructor
  `default CodeBuilderPREVIEW`
  `invokeinterface (InterfaceMethodRefEntryPREVIEW ref)`
  Generate an instruction to invoke an interface method
  `default CodeBuilderPREVIEW`
  `invokeinterface (ClassDesc owner, String name, MethodTypeDesc type)`
  Generate an instruction to invoke an interface method
  `default CodeBuilderPREVIEW`
  `invokespecial (InterfaceMethodRefEntryPREVIEW ref)`
  Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
  `default CodeBuilderPREVIEW`
  `invokespecial (MethodRefEntryPREVIEW ref)`
  Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
  `default CodeBuilderPREVIEW`
  `invokespecial (ClassDesc owner, String name, MethodTypeDesc type)`
  Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
  `default CodeBuilderPREVIEW`
  `invokespecial (ClassDesc owner, String name, MethodTypeDesc type, boolean isInterface)`
  Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
  `default CodeBuilderPREVIEW`
  `invokestatic (InterfaceMethodRefEntryPREVIEW ref)`
  Generate an instruction to invoke a class (static) method
  `default CodeBuilderPREVIEW`
  `invokestatic (MethodRefEntryPREVIEW ref)`
  Generate an instruction to invoke a class (static) method
  `default CodeBuilderPREVIEW`
  `invokestatic (ClassDesc owner, String name, MethodTypeDesc type)`
  Generate an instruction to invoke a class (static) method
  `default CodeBuilderPREVIEW`
  `invokestatic (ClassDesc owner, String name, MethodTypeDesc type, boolean isInterface)`
  Generate an instruction to invoke a class (static) method
  `default CodeBuilderPREVIEW`
  `invokevirtual (MethodRefEntryPREVIEW ref)`
  Generate an instruction to invoke an instance method; dispatch based on class
  `default CodeBuilderPREVIEW`
  `invokevirtual (ClassDesc owner, String name, MethodTypeDesc type)`
  Generate an instruction to invoke an instance method; dispatch based on class
  `default CodeBuilderPREVIEW`
  `ior()`
  Generate an instruction to calculate boolean OR of ints
  `default CodeBuilderPREVIEW`
  `irem()`
  Generate an instruction to calculate ints remainder
  `default CodeBuilderPREVIEW`
  `ireturn()`
  Generate an instruction to return an int from the method
  `default CodeBuilderPREVIEW`
  `ishl()`
  Generate an instruction to shift an int left
  `default CodeBuilderPREVIEW`
  `ishr()`
  Generate an instruction to shift an int right
  `default CodeBuilderPREVIEW`
  `istore (int slot)`
  Generate an instruction to store an int into a local variable
  `default CodeBuilderPREVIEW`
  `isub()`
  Generate an instruction to subtract ints
  `default CodeBuilderPREVIEW`
  `iushr()`
  Generate an instruction to logical shift an int right
  `default CodeBuilderPREVIEW`
  `ixor()`
  Generate an instruction to calculate boolean XOR of ints
  `default CodeBuilderPREVIEW`
  `l2d()`
  Generate an instruction to convert a long into a double
  `default CodeBuilderPREVIEW`
  `l2f()`
  Generate an instruction to convert a long into a float
  `default CodeBuilderPREVIEW`
  `l2i()`
  Generate an instruction to convert a long into an int
  `default CodeBuilderPREVIEW`
  `labelBinding (LabelPREVIEW label)`
  Bind label with current position
  `default CodeBuilderPREVIEW`
  `ladd()`
  Generate an instruction to add a long
  `default CodeBuilderPREVIEW`
  `laload()`
  Generate an instruction to load a long from an array
  `default CodeBuilderPREVIEW`
  `land()`
  Generate an instruction to calculate boolean AND of longs
  `default CodeBuilderPREVIEW`
  `lastore()`
  Generate an instruction to store into a long array
  `default CodeBuilderPREVIEW`
  `lcmp()`
  Generate an instruction to compare longs
  `default CodeBuilderPREVIEW`
  `lconst_0()`
  Generate an instruction pushing long constant 0 onto the operand stack
  `default CodeBuilderPREVIEW`
  `lconst_1()`
  Generate an instruction pushing long constant 1 onto the operand stack
  `default CodeBuilderPREVIEW`
  `ldc (LoadableConstantEntryPREVIEW entry)`
  Generate an instruction pushing an item from the run-time constant pool onto the operand stack
  `default CodeBuilderPREVIEW`
  `ldc (ConstantDesc value)`
  Generate an instruction pushing an item from the run-time constant pool onto the operand stack
  `default CodeBuilderPREVIEW`
  `ldiv()`
  Generate an instruction to divide longs
  `default CodeBuilderPREVIEW`
  `lineNumber (int line)`
  Declare a source line number of the current builder position
  `default CodeBuilderPREVIEW`
  `lload (int slot)`
  Generate an instruction to load a long from a local variable
  `default CodeBuilderPREVIEW`
  `lmul()`
  Generate an instruction to multiply longs
  `default CodeBuilderPREVIEW`
  `lneg()`
  Generate an instruction to negate a long
  `default CodeBuilderPREVIEW`
  `loadInstruction (TypeKindPREVIEW tk, int slot)`
  Generate an instruction to load a value from a local variable
  `default CodeBuilderPREVIEW`
  `localVariable (int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable entry
  `default CodeBuilderPREVIEW`
  `localVariable (int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable entry
  `default CodeBuilderPREVIEW`
  `localVariableType (int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable type entry
  `default CodeBuilderPREVIEW`
  `localVariableType (int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope)`
  Declare a local variable type entry
  `default CodeBuilderPREVIEW`
  `lookupswitch (LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by key match and jump
  `default CodeBuilderPREVIEW`
  `lookupSwitchInstruction (LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by key match and jump
  `default CodeBuilderPREVIEW`
  `lor()`
  Generate an instruction to calculate boolean OR of longs
  `default CodeBuilderPREVIEW`
  `lrem()`
  Generate an instruction to calculate longs remainder
  `default CodeBuilderPREVIEW`
  `lreturn()`
  Generate an instruction to return a long from the method
  `default CodeBuilderPREVIEW`
  `lshl()`
  Generate an instruction to shift a long left
  `default CodeBuilderPREVIEW`
  `lshr()`
  Generate an instruction to shift a long right
  `default CodeBuilderPREVIEW`
  `lstore (int slot)`
  Generate an instruction to store a long into a local variable
  `default CodeBuilderPREVIEW`
  `lsub()`
  Generate an instruction to subtract longs
  `default CodeBuilderPREVIEW`
  `lushr()`
  Generate an instruction to logical shift a long left
  `default CodeBuilderPREVIEW`
  `lxor()`
  Generate an instruction to calculate boolean XOR of longs
  `default CodeBuilderPREVIEW`
  `monitorenter()`
  Generate an instruction to enter monitor for an object
  `default CodeBuilderPREVIEW`
  `monitorexit()`
  Generate an instruction to exit monitor for an object
  `default CodeBuilderPREVIEW`
  `monitorInstruction (OpcodePREVIEW opcode)`
  Generate a monitor instruction
  `default CodeBuilderPREVIEW`
  `multianewarray (ClassEntryPREVIEW array, int dims)`
  Generate an instruction to create a new multidimensional array
  `default CodeBuilderPREVIEW`
  `multianewarray (ClassDesc array, int dims)`
  Generate an instruction to create a new multidimensional array
  `default CodeBuilderPREVIEW`
  `new_ (ClassEntryPREVIEW clazz)`
  Generate an instruction to create a new object
  `default CodeBuilderPREVIEW`
  `new_ (ClassDesc clazz)`
  Generate an instruction to create a new object
  `default CodeBuilderPREVIEW`
  `newarray (TypeKindPREVIEW typeKind)`
  Generate an instruction to create a new array of a primitive type
  `default LabelPREVIEW`
  `newBoundLabel()`
  Create new label bound with current position
  `LabelPREVIEW`
  `newLabel()`
  Returns a fresh unbound label.
  `default CodeBuilderPREVIEW`
  `newMultidimensionalArrayInstruction (int dimensions, ClassEntryPREVIEW type)`
  Generate an instruction to create a new multidimensional array
  `default CodeBuilderPREVIEW`
  `newMultidimensionalArrayInstruction (int dimensions, ClassDesc type)`
  Generate an instruction to create a new multidimensional array
  `default CodeBuilderPREVIEW`
  `newObjectInstruction (ClassEntryPREVIEW type)`
  Generate an instruction to create a new object
  `default CodeBuilderPREVIEW`
  `newObjectInstruction (ClassDesc type)`
  Generate an instruction to create a new object
  `default CodeBuilderPREVIEW`
  `newPrimitiveArrayInstruction (TypeKindPREVIEW typeKind)`
  Generate an instruction to create a new array of a primitive type
  `default CodeBuilderPREVIEW`
  `newReferenceArrayInstruction (ClassEntryPREVIEW type)`
  Generate an instruction to create a new array of reference
  `default CodeBuilderPREVIEW`
  `newReferenceArrayInstruction (ClassDesc type)`
  Generate an instruction to create a new array of reference
  `default CodeBuilderPREVIEW`
  `nop()`
  Generate a do nothing instruction
  `default CodeBuilderPREVIEW`
  `nopInstruction()`
  Generate a do nothing instruction
  `default CodeBuilderPREVIEW`
  `operatorInstruction (OpcodePREVIEW opcode)`
  Generate an operator instruction
  `Optional <CodeModelPREVIEW>`
  `original()`
  Returns the `CodeModel`PREVIEW representing the method body being transformed, if this code builder represents the transformation of some `CodeModel`PREVIEW.
  `int`
  `parameterSlot (int paramNo)`
  Returns the local variable slot associated with the specified parameter.
  `default CodeBuilderPREVIEW`
  `pop()`
  Generate an instruction to pop the top operand stack value
  `default CodeBuilderPREVIEW`
  `pop2()`
  Generate an instruction to pop the top one or two operand stack values
  `default CodeBuilderPREVIEW`
  `putfield (FieldRefEntryPREVIEW ref)`
  Generate an instruction to set field in an object
  `default CodeBuilderPREVIEW`
  `putfield (ClassDesc owner, String name, ClassDesc type)`
  Generate an instruction to set field in an object
  `default CodeBuilderPREVIEW`
  `putstatic (FieldRefEntryPREVIEW ref)`
  Generate an instruction to set static field in a class
  `default CodeBuilderPREVIEW`
  `putstatic (ClassDesc owner, String name, ClassDesc type)`
  Generate an instruction to set static field in a class
  `int`
  `receiverSlot()`
  Returns the local variable slot associated with the receiver.
  `default CodeBuilderPREVIEW`
  `return_()`
  Generate an instruction to return void from the method
  `default CodeBuilderPREVIEW`
  `returnInstruction (TypeKindPREVIEW tk)`
  Generate return instruction
  `default CodeBuilderPREVIEW`
  `saload()`
  Generate an instruction to load a short from an array
  `default CodeBuilderPREVIEW`
  `sastore()`
  Generate an instruction to store into a short array
  `default CodeBuilderPREVIEW`
  `sipush (int s)`
  Generate an instruction pushing a short onto the operand stack
  `default CodeBuilderPREVIEW`
  `stackInstruction (OpcodePREVIEW opcode)`
  Generate a stack manipulating instruction
  `LabelPREVIEW`
  `startLabel()`
  Returns the label associated with the beginning of the current block.
  `default CodeBuilderPREVIEW`
  `storeInstruction (TypeKindPREVIEW tk, int slot)`
  Generate an instruction to store a value to a local variable
  `default CodeBuilderPREVIEW`
  `swap()`
  Generate an instruction to swap the top two operand stack values
  `default CodeBuilderPREVIEW`
  `tableswitch (int low, int high, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  `tableswitch (LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  `tableSwitchInstruction (int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)`
  Generate an instruction to access a jump table by index and jump
  `default CodeBuilderPREVIEW`
  `throwInstruction()`
  Generate an instruction to throw an exception or error
  `default CodeBuilderPREVIEW`
  `transforming (CodeTransformPREVIEW transform, Consumer<CodeBuilderPREVIEW> handler)`
  Apply a transform to the code built by a handler, directing results to this builder.
  `default CodeBuilderPREVIEW`
  `trying (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> tryHandler, Consumer<CodeBuilder.CatchBuilderPREVIEW> catchesHandler)`
  Adds a "try-catch" block comprising one try block and zero or more catch blocks.
  `default CodeBuilderPREVIEW`
  `typeCheckInstruction (OpcodePREVIEW opcode, ClassEntryPREVIEW type)`
  Generate a type checking instruction
  `default CodeBuilderPREVIEW`
  `typeCheckInstruction (OpcodePREVIEW opcode, ClassDesc type)`
  Generate a type checking instruction

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

  `accept, canWriteDirect, constantPool, transform, with`

  ### Methods declared in interface java.util.function.Consumer

  `andThen`

- ## Method Details

  - ### original

    Optional<CodeModelPREVIEW> original()
    Returns the `CodeModel`PREVIEW representing the method body being transformed, if this code builder represents the transformation of some `CodeModel`PREVIEW.
    Returns:
      the `CodeModel`PREVIEW representing the method body being transformed, if this code builder represents the transformation of some `CodeModel`PREVIEW

  - ### newLabel

    LabelPREVIEW newLabel()
    Returns a fresh unbound label.
    Returns:
      a fresh unbound label

  - ### startLabel

    LabelPREVIEW startLabel()
    Returns the label associated with the beginning of the current block. If the current CodeBuilderPREVIEW is not a "block" builder, such as those provided by `block(Consumer)` or `ifThenElse(Consumer, Consumer)` , the current block will be the entire method body.
    Returns:
      the label associated with the beginning of the current block

  - ### endLabel

    LabelPREVIEW endLabel()
    Returns the label associated with the end of the current block. If the current CodeBuilderPREVIEW is not a "block" builder, such as those provided by `block(Consumer)` or `ifThenElse(Consumer, Consumer)` , the current block will be the entire method body.
    Returns:
      the label associated with the end of the current block

  - ### receiverSlot

    int receiverSlot()
    Returns the local variable slot associated with the receiver..
    Returns:
      the local variable slot associated with the receiver
    Throws:
      `IllegalStateException` - if this is not a static method

  - ### parameterSlot

    int parameterSlot (int paramNo)
    Returns the local variable slot associated with the specified parameter.. The returned value is adjusted for the receiver slot (if the method is an instance method) and for the requirement that `long` and `double` values require two slots.
    Parameters:
      `paramNo` - the index of the parameter
    Returns:
      the local variable slot associated with the specified parameter

  - ### allocateLocal

    int allocateLocal (TypeKindPREVIEW typeKind)
    Returns the local variable slot of a fresh local variable. This method makes reasonable efforts to determine which slots are in use and which are not. When transforming a method, fresh locals begin at the `maxLocals` of the original method. For a method being built directly, fresh locals begin after the last parameter slot.

    If the current code builder is a "block" code builder provided by `block(Consumer)`, `ifThen(Consumer)`, or `ifThenElse(Consumer, Consumer)` , at the end of the block, locals are reset to their value at the beginning of the block.

    Parameters:
      `typeKind` - the type of the local variable
    Returns:
      the local variable slot of a fresh local variable

  - ### transforming

    default CodeBuilderPREVIEW transforming (CodeTransformPREVIEW transform, Consumer<CodeBuilderPREVIEW> handler)
    Apply a transform to the code built by a handler, directing results to this builder.
    Parameters:
      `transform` - the transform to apply to the code built by the handler
      `handler` - the handler that receives a CodeBuilderPREVIEW to build the code.
    Returns:
      this builder

  - ### block

    default CodeBuilderPREVIEW block (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> handler)
    Add a lexical block to the method being built.

    Within this block, the `startLabel()` and `endLabel()` correspond to the start and end of the block, and the `CodeBuilder.BlockCodeBuilder.breakLabel()`PREVIEW also corresponds to the end of the block.

    Parameters:
      `handler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the lexical block.
    Returns:
      this builder

  - ### ifThen

    default CodeBuilderPREVIEW ifThen (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler)
    Add an "if-then" block that is conditional on the boolean value on top of the operand stack.

    The `CodeBuilder.BlockCodeBuilder.breakLabel()`PREVIEW for the "then" block corresponds to the end of that block.

    Parameters:
      `thenHandler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the `if`
    Returns:
      this builder

  - ### ifThen

    default CodeBuilderPREVIEW 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.

    The `CodeBuilder.BlockCodeBuilder.breakLabel()`PREVIEW for the "then" block corresponds to the end of that block.

    Parameters:
      `opcode` - the operation code for a branch instructions that accepts one or two operands on the stack
      `thenHandler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the `if`
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if the operation code is not for a branch instruction that accepts one or two operands

  - ### ifThenElse

    default CodeBuilderPREVIEW ifThenElse (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler)
    Add an "if-then-else" block that is conditional on the boolean value on top of the operand stack.

    The `CodeBuilder.BlockCodeBuilder.breakLabel()`PREVIEW for each block corresponds to the end of the "else" block.

    Parameters:
      `thenHandler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the `if`
      `elseHandler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the `else`
    Returns:
      this builder

  - ### ifThenElse

    default CodeBuilderPREVIEW 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.

    The `CodeBuilder.BlockCodeBuilder.breakLabel()`PREVIEW for each block corresponds to the end of the "else" block.

    Parameters:
      `opcode` - the operation code for a branch instructions that accepts one or two operands on the stack
      `thenHandler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the `if`
      `elseHandler` - handler that receives a CodeBuilder.BlockCodeBuilderPREVIEW to generate the body of the `else`
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if the operation code is not for a branch instruction that accepts one or two operands

  - ### trying

    default CodeBuilderPREVIEW trying (Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> tryHandler, Consumer<CodeBuilder.CatchBuilderPREVIEW> catchesHandler)
    Adds a "try-catch" block comprising one try block and zero or more catch blocks. Exceptions thrown by instructions in the try block may be caught by catch blocks.
    Parameters:
      `tryHandler` - handler that receives a CodeBuilderPREVIEW to generate the body of the try block.
      `catchesHandler` - a handler that receives a CodeBuilder.CatchBuilderPREVIEW to generate bodies of catch blocks.
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if the try block is empty.
    See Also:
      - `CodeBuilder.CatchBuilder`PREVIEW

  - ### loadInstruction

    default CodeBuilderPREVIEW loadInstruction (TypeKindPREVIEW tk, int slot)
    Generate an instruction to load a value from a local variable
    Parameters:
      `tk` - the load type
      `slot` - the local variable slot
    Returns:
      this builder

  - ### storeInstruction

    default CodeBuilderPREVIEW storeInstruction (TypeKindPREVIEW tk, int slot)
    Generate an instruction to store a value to a local variable
    Parameters:
      `tk` - the store type
      `slot` - the local variable slot
    Returns:
      this builder

  - ### incrementInstruction

    default CodeBuilderPREVIEW incrementInstruction (int slot, int val)
    Generate an instruction to increment a local variable by a constant
    Parameters:
      `slot` - the local variable slot
      `val` - the increment value
    Returns:
      this builder

  - ### branchInstruction

    default CodeBuilderPREVIEW branchInstruction (OpcodePREVIEW op, LabelPREVIEW target)
    Generate a branch instruction
    Parameters:
      `op` - the branch opcode
      `target` - the branch target
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.BRANCH`PREVIEW

  - ### lookupSwitchInstruction

    default CodeBuilderPREVIEW lookupSwitchInstruction (LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)
    Generate an instruction to access a jump table by key match and jump
    Parameters:
      `defaultTarget` - the default jump target
      `cases` - the switch cases
    Returns:
      this builder

  - ### tableSwitchInstruction

    default CodeBuilderPREVIEW tableSwitchInstruction (int lowValue, int highValue, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)
    Generate an instruction to access a jump table by index and jump
    Parameters:
      `lowValue` - the low key value
      `highValue` - the high key value
      `defaultTarget` - the default jump target
      `cases` - the switch cases
    Returns:
      this builder

  - ### returnInstruction

    default CodeBuilderPREVIEW returnInstruction (TypeKindPREVIEW tk)
    Generate return instruction
    Parameters:
      `tk` - the return type
    Returns:
      this builder

  - ### throwInstruction

    default CodeBuilderPREVIEW throwInstruction()
    Generate an instruction to throw an exception or error
    Returns:
      this builder

  - ### fieldInstruction

    default CodeBuilderPREVIEW fieldInstruction (OpcodePREVIEW opcode, FieldRefEntryPREVIEW ref)
    Generate an instruction to access a field
    Parameters:
      `opcode` - the field access opcode
      `ref` - the field reference
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.FIELD_ACCESS`PREVIEW

  - ### fieldInstruction

    default CodeBuilderPREVIEW fieldInstruction (OpcodePREVIEW opcode, ClassDesc owner, String name, ClassDesc type)
    Generate an instruction to access a field
    Parameters:
      `opcode` - the field access opcode
      `owner` - the class
      `name` - the field name
      `type` - the field type
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.FIELD_ACCESS`PREVIEW

  - ### invokeInstruction

    default CodeBuilderPREVIEW invokeInstruction (OpcodePREVIEW opcode, MemberRefEntryPREVIEW ref)
    Generate an instruction to invoke a method or constructor
    Parameters:
      `opcode` - the invoke opcode
      `ref` - the interface method or method reference
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.INVOKE`PREVIEW

  - ### invokeInstruction

    default CodeBuilderPREVIEW invokeInstruction (OpcodePREVIEW opcode, ClassDesc owner, String name, MethodTypeDesc desc, boolean isInterface)
    Generate an instruction to invoke a method or constructor
    Parameters:
      `opcode` - the invoke opcode
      `owner` - the class
      `name` - the method name
      `desc` - the method type
      `isInterface` - the interface method invocation indication
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.INVOKE`PREVIEW

  - ### invokeDynamicInstruction

    default CodeBuilderPREVIEW invokeDynamicInstruction (InvokeDynamicEntryPREVIEW ref)
    Generate an instruction to invoke a dynamically-computed call site
    Parameters:
      `ref` - the dynamic call site
    Returns:
      this builder

  - ### invokeDynamicInstruction

    default CodeBuilderPREVIEW invokeDynamicInstruction (DynamicCallSiteDesc desc)
    Generate an instruction to invoke a dynamically-computed call site
    Parameters:
      `desc` - the dynamic call site
    Returns:
      this builder

  - ### newObjectInstruction

    default CodeBuilderPREVIEW newObjectInstruction (ClassEntryPREVIEW type)
    Generate an instruction to create a new object
    Parameters:
      `type` - the object type
    Returns:
      this builder

  - ### newObjectInstruction

    default CodeBuilderPREVIEW newObjectInstruction (ClassDesc type)
    Generate an instruction to create a new object
    Parameters:
      `type` - the object type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `type` represents a primitive type

  - ### newPrimitiveArrayInstruction

    default CodeBuilderPREVIEW newPrimitiveArrayInstruction (TypeKindPREVIEW typeKind)
    Generate an instruction to create a new array of a primitive type
    Parameters:
      `typeKind` - the primitive component type
    Returns:
      this builder

  - ### newReferenceArrayInstruction

    default CodeBuilderPREVIEW newReferenceArrayInstruction (ClassEntryPREVIEW type)
    Generate an instruction to create a new array of reference
    Parameters:
      `type` - the component type
    Returns:
      this builder

  - ### newReferenceArrayInstruction

    default CodeBuilderPREVIEW newReferenceArrayInstruction (ClassDesc type)
    Generate an instruction to create a new array of reference
    Parameters:
      `type` - the component type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `type` represents a primitive type

  - ### newMultidimensionalArrayInstruction

    default CodeBuilderPREVIEW newMultidimensionalArrayInstruction (int dimensions, ClassEntryPREVIEW type)
    Generate an instruction to create a new multidimensional array
    Parameters:
      `dimensions` - the number of dimensions
      `type` - the array type
    Returns:
      this builder

  - ### newMultidimensionalArrayInstruction

    default CodeBuilderPREVIEW newMultidimensionalArrayInstruction (int dimensions, ClassDesc type)
    Generate an instruction to create a new multidimensional array
    Parameters:
      `dimensions` - the number of dimensions
      `type` - the array type
    Returns:
      this builder

  - ### arrayLoadInstruction

    default CodeBuilderPREVIEW arrayLoadInstruction (TypeKindPREVIEW tk)
    Generate an instruction to load from an array
    Parameters:
      `tk` - the array element type
    Returns:
      this builder

  - ### arrayStoreInstruction

    default CodeBuilderPREVIEW arrayStoreInstruction (TypeKindPREVIEW tk)
    Generate an instruction to store into an array
    Parameters:
      `tk` - the array element type
    Returns:
      this builder

  - ### typeCheckInstruction

    default CodeBuilderPREVIEW typeCheckInstruction (OpcodePREVIEW opcode, ClassEntryPREVIEW type)
    Generate a type checking instruction
    Parameters:
      `opcode` - the type check instruction opcode
      `type` - the type
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.TYPE_CHECK`PREVIEW

  - ### typeCheckInstruction

    default CodeBuilderPREVIEW typeCheckInstruction (OpcodePREVIEW opcode, ClassDesc type)
    Generate a type checking instruction
    Parameters:
      `opcode` - the type check instruction opcode
      `type` - the type
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.TYPE_CHECK`PREVIEW

  - ### convertInstruction

    default CodeBuilderPREVIEW convertInstruction (TypeKindPREVIEW fromType, TypeKindPREVIEW toType)
    Generate a type converting instruction
    Parameters:
      `fromType` - the source type
      `toType` - the target type
    Returns:
      this builder

  - ### stackInstruction

    default CodeBuilderPREVIEW stackInstruction (OpcodePREVIEW opcode)
    Generate a stack manipulating instruction
    Parameters:
      `opcode` - the stack instruction opcode
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.STACK`PREVIEW

  - ### operatorInstruction

    default CodeBuilderPREVIEW operatorInstruction (OpcodePREVIEW opcode)
    Generate an operator instruction
    Parameters:
      `opcode` - the operator instruction opcode
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.OPERATOR`PREVIEW

  - ### constantInstruction

    default CodeBuilderPREVIEW constantInstruction (OpcodePREVIEW opcode, ConstantDesc value)
    Generate an instruction pushing a constant onto the operand stack
    Parameters:
      `opcode` - the constant instruction opcode
      `value` - the constant value
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.CONSTANT`PREVIEW

  - ### constantInstruction

    default CodeBuilderPREVIEW constantInstruction (ConstantDesc value)
    Generate an instruction pushing a constant onto the operand stack
    Parameters:
      `value` - the constant value
    Returns:
      this builder

  - ### monitorInstruction

    default CodeBuilderPREVIEW monitorInstruction (OpcodePREVIEW opcode)
    Generate a monitor instruction
    Parameters:
      `opcode` - the monitor instruction opcode
    Returns:
      this builder
    See Also:
      - `Opcode.Kind.MONITOR`PREVIEW

  - ### nopInstruction

    default CodeBuilderPREVIEW nopInstruction()
    Generate a do nothing instruction
    Returns:
      this builder

  - ### nop

    default CodeBuilderPREVIEW nop()
    Generate a do nothing instruction
    Returns:
      this builder

  - ### newBoundLabel

    default LabelPREVIEW newBoundLabel()
    Create new label bound with current position
    Returns:
      this builder

  - ### labelBinding

    default CodeBuilderPREVIEW labelBinding (LabelPREVIEW label)
    Bind label with current position
    Parameters:
      `label` - the label
    Returns:
      this builder

  - ### lineNumber

    default CodeBuilderPREVIEW lineNumber (int line)
    Declare a source line number of the current builder position
    Parameters:
      `line` - the line number
    Returns:
      this builder

  - ### exceptionCatch

    default CodeBuilderPREVIEW exceptionCatch (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassEntryPREVIEW catchType)
    Declare an exception table entry
    Parameters:
      `start` - the try block start
      `end` - the try block end
      `handler` - the exception handler start
      `catchType` - the catch type or null to catch all exceptions and errors
    Returns:
      this builder

  - ### exceptionCatch

    default CodeBuilderPREVIEW exceptionCatch (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, Optional<ClassEntryPREVIEW> catchType)
    Declare an exception table entry
    Parameters:
      `start` - the try block start
      `end` - the try block end
      `handler` - the exception handler start
      `catchType` - the optional catch type, empty to catch all exceptions and errors
    Returns:
      this builder

  - ### exceptionCatch

    default CodeBuilderPREVIEW exceptionCatch (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler, ClassDesc catchType)
    Declare an exception table entry
    Parameters:
      `start` - the try block start
      `end` - the try block end
      `handler` - the exception handler start
      `catchType` - the catch type
    Returns:
      this builder

  - ### exceptionCatchAll

    default CodeBuilderPREVIEW exceptionCatchAll (LabelPREVIEW start, LabelPREVIEW end, LabelPREVIEW handler)
    Declare an exception table entry catching all exceptions and errors
    Parameters:
      `start` - the try block start
      `end` - the try block end
      `handler` - the exception handler start
    Returns:
      this builder

  - ### characterRange

    default CodeBuilderPREVIEW characterRange (LabelPREVIEW startScope, LabelPREVIEW endScope, int characterRangeStart, int characterRangeEnd, int flags)
    Declare a character range entry
    Parameters:
      `startScope` - the start scope of the character range
      `endScope` - the end scope of the character range
      `characterRangeStart` - the encoded start of the character range region (inclusive)
      `characterRangeEnd` - the encoded end of the character range region (exclusive)
      `flags` - the flags word, indicating the kind of range
    Returns:
      this builder

  - ### localVariable

    default CodeBuilderPREVIEW localVariable (int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW descriptorEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)
    Declare a local variable entry
    Parameters:
      `slot` - the local variable slot
      `nameEntry` - the variable name
      `descriptorEntry` - the variable descriptor
      `startScope` - the start scope of the variable
      `endScope` - the end scope of the variable
    Returns:
      this builder

  - ### localVariable

    default CodeBuilderPREVIEW localVariable (int slot, String name, ClassDesc descriptor, LabelPREVIEW startScope, LabelPREVIEW endScope)
    Declare a local variable entry
    Parameters:
      `slot` - the local variable slot
      `name` - the variable name
      `descriptor` - the variable descriptor
      `startScope` - the start scope of the variable
      `endScope` - the end scope of the variable
    Returns:
      this builder

  - ### localVariableType

    default CodeBuilderPREVIEW localVariableType (int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope)
    Declare a local variable type entry
    Parameters:
      `slot` - the local variable slot
      `nameEntry` - the variable name
      `signatureEntry` - the variable signature
      `startScope` - the start scope of the variable
      `endScope` - the end scope of the variable
    Returns:
      this builder

  - ### localVariableType

    default CodeBuilderPREVIEW localVariableType (int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope)
    Declare a local variable type entry
    Parameters:
      `slot` - the local variable slot
      `name` - the variable name
      `signature` - the variable signature
      `startScope` - the start scope of the variable
      `endScope` - the end scope of the variable
    Returns:
      this builder

  - ### aconst_null

    default CodeBuilderPREVIEW aconst_null()
    Generate an instruction pushing the null object reference onto the operand stack
    Returns:
      this builder

  - ### aaload

    default CodeBuilderPREVIEW aaload()
    Generate an instruction to load a reference from an array
    Returns:
      this builder

  - ### aastore

    default CodeBuilderPREVIEW aastore()
    Generate an instruction to store into a reference array
    Returns:
      this builder

  - ### aload

    default CodeBuilderPREVIEW aload (int slot)
    Generate an instruction to load a reference from a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### anewarray

    default CodeBuilderPREVIEW anewarray (ClassEntryPREVIEW classEntry)
    Generate an instruction to create a new array of reference
    Parameters:
      `classEntry` - the component type
    Returns:
      this builder

  - ### anewarray

    default CodeBuilderPREVIEW anewarray (ClassDesc className)
    Generate an instruction to create a new array of reference
    Parameters:
      `className` - the component type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `className` represents a primitive type

  - ### areturn

    default CodeBuilderPREVIEW areturn()
    Generate an instruction to return a reference from the method
    Returns:
      this builder

  - ### arraylength

    default CodeBuilderPREVIEW arraylength()
    Generate an instruction to get length of an array
    Returns:
      this builder

  - ### astore

    default CodeBuilderPREVIEW astore (int slot)
    Generate an instruction to store a reference into a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### athrow

    default CodeBuilderPREVIEW athrow()
    Generate an instruction to throw an exception or error
    Returns:
      this builder

  - ### baload

    default CodeBuilderPREVIEW baload()
    Generate an instruction to load a byte from a array
    Returns:
      this builder

  - ### bastore

    default CodeBuilderPREVIEW bastore()
    Generate an instruction to store into a byte array
    Returns:
      this builder

  - ### bipush

    default CodeBuilderPREVIEW bipush (int b)
    Generate an instruction pushing a byte onto the operand stack
    Parameters:
      `b` - the byte
    Returns:
      this builder

  - ### caload

    default CodeBuilderPREVIEW caload()
    Generate an instruction to load a char from an array
    Returns:
      this builder

  - ### castore

    default CodeBuilderPREVIEW castore()
    Generate an instruction to store into a char array
    Returns:
      this builder

  - ### checkcast

    default CodeBuilderPREVIEW checkcast (ClassEntryPREVIEW type)
    Generate an instruction to check whether an object is of the given type
    Parameters:
      `type` - the object type
    Returns:
      this builder

  - ### checkcast

    default CodeBuilderPREVIEW checkcast (ClassDesc type)
    Generate an instruction to check whether an object is of the given type
    Parameters:
      `type` - the object type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `type` represents a primitive type

  - ### d2f

    default CodeBuilderPREVIEW d2f()
    Generate an instruction to convert a double into a float
    Returns:
      this builder

  - ### d2i

    default CodeBuilderPREVIEW d2i()
    Generate an instruction to convert a double into an int
    Returns:
      this builder

  - ### d2l

    default CodeBuilderPREVIEW d2l()
    Generate an instruction to convert a double into a long
    Returns:
      this builder

  - ### dadd

    default CodeBuilderPREVIEW dadd()
    Generate an instruction to add a double
    Returns:
      this builder

  - ### daload

    default CodeBuilderPREVIEW daload()
    Generate an instruction to load a double from an array
    Returns:
      this builder

  - ### dastore

    default CodeBuilderPREVIEW dastore()
    Generate an instruction to store into a double array
    Returns:
      this builder

  - ### dcmpg

    default CodeBuilderPREVIEW dcmpg()
    Generate an instruction to add a double
    Returns:
      this builder

  - ### dcmpl

    default CodeBuilderPREVIEW dcmpl()
    Generate an instruction to compare doubles
    Returns:
      this builder

  - ### dconst_0

    default CodeBuilderPREVIEW dconst_0()
    Generate an instruction pushing double constant 0 onto the operand stack
    Returns:
      this builder

  - ### dconst_1

    default CodeBuilderPREVIEW dconst_1()
    Generate an instruction pushing double constant 1 onto the operand stack
    Returns:
      this builder

  - ### ddiv

    default CodeBuilderPREVIEW ddiv()
    Generate an instruction to divide doubles
    Returns:
      this builder

  - ### dload

    default CodeBuilderPREVIEW dload (int slot)
    Generate an instruction to load a double from a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### dmul

    default CodeBuilderPREVIEW dmul()
    Generate an instruction to multiply doubles
    Returns:
      this builder

  - ### dneg

    default CodeBuilderPREVIEW dneg()
    Generate an instruction to negate a double
    Returns:
      this builder

  - ### drem

    default CodeBuilderPREVIEW drem()
    Generate an instruction to calculate double remainder
    Returns:
      this builder

  - ### dreturn

    default CodeBuilderPREVIEW dreturn()
    Generate an instruction to return a double from the method
    Returns:
      this builder

  - ### dstore

    default CodeBuilderPREVIEW dstore (int slot)
    Generate an instruction to store a double into a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### dsub

    default CodeBuilderPREVIEW dsub()
    Generate an instruction to subtract doubles
    Returns:
      this builder

  - ### dup

    default CodeBuilderPREVIEW dup()
    Generate an instruction to duplicate the top operand stack value
    Returns:
      this builder

  - ### dup2

    default CodeBuilderPREVIEW dup2()
    Generate an instruction to duplicate the top one or two operand stack value
    Returns:
      this builder

  - ### dup2_x1

    default CodeBuilderPREVIEW dup2_x1()
    Generate an instruction to duplicate the top one or two operand stack values and insert two or three values down
    Returns:
      this builder

  - ### dup2_x2

    default CodeBuilderPREVIEW dup2_x2()
    Generate an instruction to duplicate the top one or two operand stack values and insert two, three, or four values down
    Returns:
      this builder

  - ### dup_x1

    default CodeBuilderPREVIEW dup_x1()
    Generate an instruction to duplicate the top operand stack value and insert two values down
    Returns:
      this builder

  - ### dup_x2

    default CodeBuilderPREVIEW dup_x2()
    Generate an instruction to duplicate the top operand stack value and insert two or three values down
    Returns:
      this builder

  - ### f2d

    default CodeBuilderPREVIEW f2d()
    Generate an instruction to convert a float into a double
    Returns:
      this builder

  - ### f2i

    default CodeBuilderPREVIEW f2i()
    Generate an instruction to convert a float into an int
    Returns:
      this builder

  - ### f2l

    default CodeBuilderPREVIEW f2l()
    Generate an instruction to convert a float into a long
    Returns:
      this builder

  - ### fadd

    default CodeBuilderPREVIEW fadd()
    Generate an instruction to add a float
    Returns:
      this builder

  - ### faload

    default CodeBuilderPREVIEW faload()
    Generate an instruction to load a float from an array
    Returns:
      this builder

  - ### fastore

    default CodeBuilderPREVIEW fastore()
    Generate an instruction to store into a float array
    Returns:
      this builder

  - ### fcmpg

    default CodeBuilderPREVIEW fcmpg()
    Generate an instruction to compare floats
    Returns:
      this builder

  - ### fcmpl

    default CodeBuilderPREVIEW fcmpl()
    Generate an instruction to compare floats
    Returns:
      this builder

  - ### fconst_0

    default CodeBuilderPREVIEW fconst_0()
    Generate an instruction pushing float constant 0 onto the operand stack
    Returns:
      this builder

  - ### fconst_1

    default CodeBuilderPREVIEW fconst_1()
    Generate an instruction pushing float constant 1 onto the operand stack
    Returns:
      this builder

  - ### fconst_2

    default CodeBuilderPREVIEW fconst_2()
    Generate an instruction pushing float constant 2 onto the operand stack
    Returns:
      this builder

  - ### fdiv

    default CodeBuilderPREVIEW fdiv()
    Generate an instruction to divide floats
    Returns:
      this builder

  - ### fload

    default CodeBuilderPREVIEW fload (int slot)
    Generate an instruction to load a float from a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### fmul

    default CodeBuilderPREVIEW fmul()
    Generate an instruction to multiply floats
    Returns:
      this builder

  - ### fneg

    default CodeBuilderPREVIEW fneg()
    Generate an instruction to negate a float
    Returns:
      this builder

  - ### frem

    default CodeBuilderPREVIEW frem()
    Generate an instruction to calculate floats remainder
    Returns:
      this builder

  - ### freturn

    default CodeBuilderPREVIEW freturn()
    Generate an instruction to return a float from the method
    Returns:
      this builder

  - ### fstore

    default CodeBuilderPREVIEW fstore (int slot)
    Generate an instruction to store a float into a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### fsub

    default CodeBuilderPREVIEW fsub()
    Generate an instruction to subtract floats
    Returns:
      this builder

  - ### getfield

    default CodeBuilderPREVIEW getfield (FieldRefEntryPREVIEW ref)
    Generate an instruction to fetch field from an object
    Parameters:
      `ref` - the field reference
    Returns:
      this builder

  - ### getfield

    default CodeBuilderPREVIEW getfield (ClassDesc owner, String name, ClassDesc type)
    Generate an instruction to fetch field from an object
    Parameters:
      `owner` - the owner class
      `name` - the field name
      `type` - the field type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### getstatic

    default CodeBuilderPREVIEW getstatic (FieldRefEntryPREVIEW ref)
    Generate an instruction to get static field from a class
    Parameters:
      `ref` - the field reference
    Returns:
      this builder

  - ### getstatic

    default CodeBuilderPREVIEW getstatic (ClassDesc owner, String name, ClassDesc type)
    Generate an instruction to get static field from a class
    Parameters:
      `owner` - the owner class
      `name` - the field name
      `type` - the field type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### goto_

    default CodeBuilderPREVIEW goto_ (LabelPREVIEW target)
    Generate an instruction to branch always
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### goto_w

    default CodeBuilderPREVIEW goto_w (LabelPREVIEW target)
    Generate an instruction to branch always with wide index
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### i2b

    default CodeBuilderPREVIEW i2b()
    Generate an instruction to convert an int into a byte
    Returns:
      this builder

  - ### i2c

    default CodeBuilderPREVIEW i2c()
    Generate an instruction to convert an int into a char
    Returns:
      this builder

  - ### i2d

    default CodeBuilderPREVIEW i2d()
    Generate an instruction to convert an int into a double
    Returns:
      this builder

  - ### i2f

    default CodeBuilderPREVIEW i2f()
    Generate an instruction to convert an int into a float
    Returns:
      this builder

  - ### i2l

    default CodeBuilderPREVIEW i2l()
    Generate an instruction to convert an int into a long
    Returns:
      this builder

  - ### i2s

    default CodeBuilderPREVIEW i2s()
    Generate an instruction to convert an int into a short
    Returns:
      this builder

  - ### iadd

    default CodeBuilderPREVIEW iadd()
    Generate an instruction to add an int
    Returns:
      this builder

  - ### iaload

    default CodeBuilderPREVIEW iaload()
    Generate an instruction to load a int from an array
    Returns:
      this builder

  - ### iand

    default CodeBuilderPREVIEW iand()
    Generate an instruction to calculate boolean AND of ints
    Returns:
      this builder

  - ### iastore

    default CodeBuilderPREVIEW iastore()
    Generate an instruction to store into an int array
    Returns:
      this builder

  - ### iconst_0

    default CodeBuilderPREVIEW iconst_0()
    Generate an instruction pushing int constant 0 onto the operand stack
    Returns:
      this builder

  - ### iconst_1

    default CodeBuilderPREVIEW iconst_1()
    Generate an instruction pushing int constant 1 onto the operand stack
    Returns:
      this builder

  - ### iconst_2

    default CodeBuilderPREVIEW iconst_2()
    Generate an instruction pushing int constant 2 onto the operand stack
    Returns:
      this builder

  - ### iconst_3

    default CodeBuilderPREVIEW iconst_3()
    Generate an instruction pushing int constant 3 onto the operand stack
    Returns:
      this builder

  - ### iconst_4

    default CodeBuilderPREVIEW iconst_4()
    Generate an instruction pushing int constant 4 onto the operand stack
    Returns:
      this builder

  - ### iconst_5

    default CodeBuilderPREVIEW iconst_5()
    Generate an instruction pushing int constant 5 onto the operand stack
    Returns:
      this builder

  - ### iconst_m1

    default CodeBuilderPREVIEW iconst_m1()
    Generate an instruction pushing int constant -1 onto the operand stack
    Returns:
      this builder

  - ### idiv

    default CodeBuilderPREVIEW idiv()
    Generate an instruction to divide ints
    Returns:
      this builder

  - ### if_acmpeq

    default CodeBuilderPREVIEW if_acmpeq (LabelPREVIEW target)
    Generate an instruction to branch if reference comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_acmpne

    default CodeBuilderPREVIEW if_acmpne (LabelPREVIEW target)
    Generate an instruction to branch if reference comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_icmpeq

    default CodeBuilderPREVIEW if_icmpeq (LabelPREVIEW target)
    Generate an instruction to branch if int comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_icmpge

    default CodeBuilderPREVIEW if_icmpge (LabelPREVIEW target)
    Generate an instruction to branch if int comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_icmpgt

    default CodeBuilderPREVIEW if_icmpgt (LabelPREVIEW target)
    Generate an instruction to branch if int comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_icmple

    default CodeBuilderPREVIEW if_icmple (LabelPREVIEW target)
    Generate an instruction to branch if int comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_icmplt

    default CodeBuilderPREVIEW if_icmplt (LabelPREVIEW target)
    Generate an instruction to branch if int comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_icmpne

    default CodeBuilderPREVIEW if_icmpne (LabelPREVIEW target)
    Generate an instruction to branch if int comparison succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_nonnull

    default CodeBuilderPREVIEW if_nonnull (LabelPREVIEW target)
    Generate an instruction to branch if reference is not null
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### if_null

    default CodeBuilderPREVIEW if_null (LabelPREVIEW target)
    Generate an instruction to branch if reference is null
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### ifeq

    default CodeBuilderPREVIEW ifeq (LabelPREVIEW target)
    Generate an instruction to branch if int comparison with zero succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### ifge

    default CodeBuilderPREVIEW ifge (LabelPREVIEW target)
    Generate an instruction to branch if int comparison with zero succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### ifgt

    default CodeBuilderPREVIEW ifgt (LabelPREVIEW target)
    Generate an instruction to branch if int comparison with zero succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### ifle

    default CodeBuilderPREVIEW ifle (LabelPREVIEW target)
    Generate an instruction to branch if int comparison with zero succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### iflt

    default CodeBuilderPREVIEW iflt (LabelPREVIEW target)
    Generate an instruction to branch if int comparison with zero succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### ifne

    default CodeBuilderPREVIEW ifne (LabelPREVIEW target)
    Generate an instruction to branch if int comparison with zero succeeds
    Parameters:
      `target` - the branch target
    Returns:
      this builder

  - ### iinc

    default CodeBuilderPREVIEW iinc (int slot, int val)
    Generate an instruction to increment a local variable by a constant
    Parameters:
      `slot` - the local variable slot
      `val` - the increment value
    Returns:
      this builder

  - ### iload

    default CodeBuilderPREVIEW iload (int slot)
    Generate an instruction to load an int from a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### imul

    default CodeBuilderPREVIEW imul()
    Generate an instruction to multiply ints
    Returns:
      this builder

  - ### ineg

    default CodeBuilderPREVIEW ineg()
    Generate an instruction to negate an int
    Returns:
      this builder

  - ### instanceof_

    default CodeBuilderPREVIEW instanceof_ (ClassEntryPREVIEW target)
    Generate an instruction to determine if an object is of the given type
    Parameters:
      `target` - the target type
    Returns:
      this builder

  - ### instanceof_

    default CodeBuilderPREVIEW instanceof_ (ClassDesc target)
    Generate an instruction to determine if an object is of the given type
    Parameters:
      `target` - the target type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `target` represents a primitive type

  - ### invokedynamic

    default CodeBuilderPREVIEW invokedynamic (InvokeDynamicEntryPREVIEW ref)
    Generate an instruction to invoke a dynamically-computed call site
    Parameters:
      `ref` - the dynamic call site
    Returns:
      this builder

  - ### invokedynamic

    default CodeBuilderPREVIEW invokedynamic (DynamicCallSiteDesc ref)
    Generate an instruction to invoke a dynamically-computed call site
    Parameters:
      `ref` - the dynamic call site
    Returns:
      this builder

  - ### invokeinterface

    default CodeBuilderPREVIEW invokeinterface (InterfaceMethodRefEntryPREVIEW ref)
    Generate an instruction to invoke an interface method
    Parameters:
      `ref` - the interface method reference
    Returns:
      this builder

  - ### invokeinterface

    default CodeBuilderPREVIEW invokeinterface (ClassDesc owner, String name, MethodTypeDesc type)
    Generate an instruction to invoke an interface method
    Parameters:
      `owner` - the owner class
      `name` - the method name
      `type` - the method type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### invokespecial

    default CodeBuilderPREVIEW invokespecial (InterfaceMethodRefEntryPREVIEW ref)
    Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
    Parameters:
      `ref` - the interface method reference
    Returns:
      this builder

  - ### invokespecial

    default CodeBuilderPREVIEW invokespecial (MethodRefEntryPREVIEW ref)
    Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
    Parameters:
      `ref` - the method reference
    Returns:
      this builder

  - ### invokespecial

    default CodeBuilderPREVIEW invokespecial (ClassDesc owner, String name, MethodTypeDesc type)
    Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
    Parameters:
      `owner` - the owner class
      `name` - the method name
      `type` - the method type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### invokespecial

    default CodeBuilderPREVIEW invokespecial (ClassDesc owner, String name, MethodTypeDesc type, boolean isInterface)
    Generate an instruction to invoke an instance method; direct invocation of instance initialization methods and methods of the current class and its supertypes
    Parameters:
      `owner` - the owner class
      `name` - the method name
      `type` - the method type
      `isInterface` - the interface method invocation indication
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### invokestatic

    default CodeBuilderPREVIEW invokestatic (InterfaceMethodRefEntryPREVIEW ref)
    Generate an instruction to invoke a class (static) method
    Parameters:
      `ref` - the interface method reference
    Returns:
      this builder

  - ### invokestatic

    default CodeBuilderPREVIEW invokestatic (MethodRefEntryPREVIEW ref)
    Generate an instruction to invoke a class (static) method
    Parameters:
      `ref` - the method reference
    Returns:
      this builder

  - ### invokestatic

    default CodeBuilderPREVIEW invokestatic (ClassDesc owner, String name, MethodTypeDesc type)
    Generate an instruction to invoke a class (static) method
    Parameters:
      `owner` - the owner class
      `name` - the method name
      `type` - the method type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### invokestatic

    default CodeBuilderPREVIEW invokestatic (ClassDesc owner, String name, MethodTypeDesc type, boolean isInterface)
    Generate an instruction to invoke a class (static) method
    Parameters:
      `owner` - the owner class
      `name` - the method name
      `type` - the method type
      `isInterface` - the interface method invocation indication
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### invokevirtual

    default CodeBuilderPREVIEW invokevirtual (MethodRefEntryPREVIEW ref)
    Generate an instruction to invoke an instance method; dispatch based on class
    Parameters:
      `ref` - the method reference
    Returns:
      this builder

  - ### invokevirtual

    default CodeBuilderPREVIEW invokevirtual (ClassDesc owner, String name, MethodTypeDesc type)
    Generate an instruction to invoke an instance method; dispatch based on class
    Parameters:
      `owner` - the owner class
      `name` - the method name
      `type` - the method type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### ior

    default CodeBuilderPREVIEW ior()
    Generate an instruction to calculate boolean OR of ints
    Returns:
      this builder

  - ### irem

    default CodeBuilderPREVIEW irem()
    Generate an instruction to calculate ints remainder
    Returns:
      this builder

  - ### ireturn

    default CodeBuilderPREVIEW ireturn()
    Generate an instruction to return an int from the method
    Returns:
      this builder

  - ### ishl

    default CodeBuilderPREVIEW ishl()
    Generate an instruction to shift an int left
    Returns:
      this builder

  - ### ishr

    default CodeBuilderPREVIEW ishr()
    Generate an instruction to shift an int right
    Returns:
      this builder

  - ### istore

    default CodeBuilderPREVIEW istore (int slot)
    Generate an instruction to store an int into a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### isub

    default CodeBuilderPREVIEW isub()
    Generate an instruction to subtract ints
    Returns:
      this builder

  - ### iushr

    default CodeBuilderPREVIEW iushr()
    Generate an instruction to logical shift an int right
    Returns:
      this builder

  - ### ixor

    default CodeBuilderPREVIEW ixor()
    Generate an instruction to calculate boolean XOR of ints
    Returns:
      this builder

  - ### lookupswitch

    default CodeBuilderPREVIEW lookupswitch (LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)
    Generate an instruction to access a jump table by key match and jump
    Parameters:
      `defaultTarget` - the default jump target
      `cases` - the switch cases
    Returns:
      this builder

  - ### l2d

    default CodeBuilderPREVIEW l2d()
    Generate an instruction to convert a long into a double
    Returns:
      this builder

  - ### l2f

    default CodeBuilderPREVIEW l2f()
    Generate an instruction to convert a long into a float
    Returns:
      this builder

  - ### l2i

    default CodeBuilderPREVIEW l2i()
    Generate an instruction to convert a long into an int
    Returns:
      this builder

  - ### ladd

    default CodeBuilderPREVIEW ladd()
    Generate an instruction to add a long
    Returns:
      this builder

  - ### laload

    default CodeBuilderPREVIEW laload()
    Generate an instruction to load a long from an array
    Returns:
      this builder

  - ### land

    default CodeBuilderPREVIEW land()
    Generate an instruction to calculate boolean AND of longs
    Returns:
      this builder

  - ### lastore

    default CodeBuilderPREVIEW lastore()
    Generate an instruction to store into a long array
    Returns:
      this builder

  - ### lcmp

    default CodeBuilderPREVIEW lcmp()
    Generate an instruction to compare longs
    Returns:
      this builder

  - ### lconst_0

    default CodeBuilderPREVIEW lconst_0()
    Generate an instruction pushing long constant 0 onto the operand stack
    Returns:
      this builder

  - ### lconst_1

    default CodeBuilderPREVIEW lconst_1()
    Generate an instruction pushing long constant 1 onto the operand stack
    Returns:
      this builder

  - ### ldc

    default CodeBuilderPREVIEW ldc (ConstantDesc value)
    Generate an instruction pushing an item from the run-time constant pool onto the operand stack
    Parameters:
      `value` - the constant value
    Returns:
      this builder

  - ### ldc

    default CodeBuilderPREVIEW ldc (LoadableConstantEntryPREVIEW entry)
    Generate an instruction pushing an item from the run-time constant pool onto the operand stack
    Parameters:
      `entry` - the constant value
    Returns:
      this builder

  - ### ldiv

    default CodeBuilderPREVIEW ldiv()
    Generate an instruction to divide longs
    Returns:
      this builder

  - ### lload

    default CodeBuilderPREVIEW lload (int slot)
    Generate an instruction to load a long from a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### lmul

    default CodeBuilderPREVIEW lmul()
    Generate an instruction to multiply longs
    Returns:
      this builder

  - ### lneg

    default CodeBuilderPREVIEW lneg()
    Generate an instruction to negate a long
    Returns:
      this builder

  - ### lor

    default CodeBuilderPREVIEW lor()
    Generate an instruction to calculate boolean OR of longs
    Returns:
      this builder

  - ### lrem

    default CodeBuilderPREVIEW lrem()
    Generate an instruction to calculate longs remainder
    Returns:
      this builder

  - ### lreturn

    default CodeBuilderPREVIEW lreturn()
    Generate an instruction to return a long from the method
    Returns:
      this builder

  - ### lshl

    default CodeBuilderPREVIEW lshl()
    Generate an instruction to shift a long left
    Returns:
      this builder

  - ### lshr

    default CodeBuilderPREVIEW lshr()
    Generate an instruction to shift a long right
    Returns:
      this builder

  - ### lstore

    default CodeBuilderPREVIEW lstore (int slot)
    Generate an instruction to store a long into a local variable
    Parameters:
      `slot` - the local variable slot
    Returns:
      this builder

  - ### lsub

    default CodeBuilderPREVIEW lsub()
    Generate an instruction to subtract longs
    Returns:
      this builder

  - ### lushr

    default CodeBuilderPREVIEW lushr()
    Generate an instruction to logical shift a long left
    Returns:
      this builder

  - ### lxor

    default CodeBuilderPREVIEW lxor()
    Generate an instruction to calculate boolean XOR of longs
    Returns:
      this builder

  - ### monitorenter

    default CodeBuilderPREVIEW monitorenter()
    Generate an instruction to enter monitor for an object
    Returns:
      this builder

  - ### monitorexit

    default CodeBuilderPREVIEW monitorexit()
    Generate an instruction to exit monitor for an object
    Returns:
      this builder

  - ### multianewarray

    default CodeBuilderPREVIEW multianewarray (ClassEntryPREVIEW array, int dims)
    Generate an instruction to create a new multidimensional array
    Parameters:
      `array` - the array type
      `dims` - the number of dimensions
    Returns:
      this builder

  - ### multianewarray

    default CodeBuilderPREVIEW multianewarray (ClassDesc array, int dims)
    Generate an instruction to create a new multidimensional array
    Parameters:
      `array` - the array type
      `dims` - the number of dimensions
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `array` represents a primitive type

  - ### new_

    default CodeBuilderPREVIEW new_ (ClassEntryPREVIEW clazz)
    Generate an instruction to create a new object
    Parameters:
      `clazz` - the new class type
    Returns:
      this builder

  - ### new_

    default CodeBuilderPREVIEW new_ (ClassDesc clazz)
    Generate an instruction to create a new object
    Parameters:
      `clazz` - the new class type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `clazz` represents a primitive type

  - ### newarray

    default CodeBuilderPREVIEW newarray (TypeKindPREVIEW typeKind)
    Generate an instruction to create a new array of a primitive type
    Parameters:
      `typeKind` - the primitive array type
    Returns:
      this builder

  - ### pop

    default CodeBuilderPREVIEW pop()
    Generate an instruction to pop the top operand stack value
    Returns:
      this builder

  - ### pop2

    default CodeBuilderPREVIEW pop2()
    Generate an instruction to pop the top one or two operand stack values
    Returns:
      this builder

  - ### putfield

    default CodeBuilderPREVIEW putfield (FieldRefEntryPREVIEW ref)
    Generate an instruction to set field in an object
    Parameters:
      `ref` - the field reference
    Returns:
      this builder

  - ### putfield

    default CodeBuilderPREVIEW putfield (ClassDesc owner, String name, ClassDesc type)
    Generate an instruction to set field in an object
    Parameters:
      `owner` - the owner class
      `name` - the field name
      `type` - the field type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### putstatic

    default CodeBuilderPREVIEW putstatic (FieldRefEntryPREVIEW ref)
    Generate an instruction to set static field in a class
    Parameters:
      `ref` - the field reference
    Returns:
      this builder

  - ### putstatic

    default CodeBuilderPREVIEW putstatic (ClassDesc owner, String name, ClassDesc type)
    Generate an instruction to set static field in a class
    Parameters:
      `owner` - the owner class
      `name` - the field name
      `type` - the field type
    Returns:
      this builder
    Throws:
      `IllegalArgumentException` - if `owner` represents a primitive type

  - ### return_

    default CodeBuilderPREVIEW return_()
    Generate an instruction to return void from the method
    Returns:
      this builder

  - ### saload

    default CodeBuilderPREVIEW saload()
    Generate an instruction to load a short from an array
    Returns:
      this builder

  - ### sastore

    default CodeBuilderPREVIEW sastore()
    Generate an instruction to store into a short array
    Returns:
      this builder

  - ### sipush

    default CodeBuilderPREVIEW sipush (int s)
    Generate an instruction pushing a short onto the operand stack
    Parameters:
      `s` - the short
    Returns:
      this builder

  - ### swap

    default CodeBuilderPREVIEW swap()
    Generate an instruction to swap the top two operand stack values
    Returns:
      this builder

  - ### tableswitch

    default CodeBuilderPREVIEW tableswitch (int low, int high, LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)
    Generate an instruction to access a jump table by index and jump
    Parameters:
      `low` - the low key value
      `high` - the high key value
      `defaultTarget` - the default jump target
      `cases` - the switch cases
    Returns:
      this builder

  - ### tableswitch

    default CodeBuilderPREVIEW tableswitch (LabelPREVIEW defaultTarget, List<SwitchCasePREVIEW> cases)
    Generate an instruction to access a jump table by index and jump
    Parameters:
      `defaultTarget` - the default jump target
      `cases` - the switch cases
    Returns:
      this builder