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

Packages that use TypeKindPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.components
Provides specific components, transformations, and tools built on top of the `java.lang.classfile`PREVIEW library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for the `java.lang.classfile`PREVIEW library.

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

  Methods in java.lang.classfilePREVIEW that return TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `TypeKindPREVIEW`
  TypeKind.`asLoadable()`
  Erase this type kind to the type which will be used for xLOAD, xSTORE, and xRETURN bytecodes
  `static TypeKindPREVIEW`
  TypeKind.`from(TypeDescriptor.OfField<?> descriptor)`
  Returns the type kind associated with the specified field descriptor.
  `static TypeKindPREVIEW`
  TypeKind.`fromDescriptor(CharSequence s)`
  Returns the type kind associated with the specified field descriptor.
  `static TypeKindPREVIEW`
  TypeKind.`fromNewArrayCode(int newarraycode)`
  Returns the type kind associated with the array type described by the array code used as an operand to `newarray`.
  `TypeKindPREVIEW`
  Opcode.`primaryTypeKind()`
  Returns primary type kind for instructions operating with at least one type, or null otherwise.
  `TypeKindPREVIEW`
  Opcode.`secondaryTypeKind()`
  Returns secondary type kind for instructions operating with two types, or null otherwise.
  `static TypeKindPREVIEW`
  TypeKind.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static TypeKindPREVIEW[]`
  TypeKind.`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 TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `int`
  CodeBuilder.`allocateLocal(TypeKindPREVIEW typeKind)`
  Returns the local variable slot of a fresh local variable.
  `default CodeBuilderPREVIEW`
  CodeBuilder.`arrayLoadInstruction(TypeKindPREVIEW tk)`
  Generate an instruction to load from an array
  `default CodeBuilderPREVIEW`
  CodeBuilder.`arrayStoreInstruction(TypeKindPREVIEW tk)`
  Generate an instruction to store into an array
  `default CodeBuilderPREVIEW`
  CodeBuilder.`convertInstruction(TypeKindPREVIEW fromType, TypeKindPREVIEW toType)`
  Generate a type converting instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`loadInstruction(TypeKindPREVIEW tk, int slot)`
  Generate an instruction to load a value from a local variable
  `default CodeBuilderPREVIEW`
  CodeBuilder.`newarray(TypeKindPREVIEW typeKind)`
  Generate an instruction to create a new array of a primitive type
  `default CodeBuilderPREVIEW`
  CodeBuilder.`newPrimitiveArrayInstruction(TypeKindPREVIEW typeKind)`
  Generate an instruction to create a new array of a primitive type
  `default CodeBuilderPREVIEW`
  CodeBuilder.`returnInstruction(TypeKindPREVIEW tk)`
  Generate return instruction
  `default CodeBuilderPREVIEW`
  CodeBuilder.`storeInstruction(TypeKindPREVIEW tk, int slot)`
  Generate an instruction to store a value to a local variable

- ## Uses of TypeKindPREVIEW in java.lang.classfile.componentsPREVIEW

  Methods in java.lang.classfile.componentsPREVIEW that return types with arguments of type TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `Optional<Collection<TypeKindPREVIEW>>`
  CodeStackTracker.`stack()`
  Returns Collection of TypeKindPREVIEW representing current stack.
  Methods in java.lang.classfile.componentsPREVIEW with parameters of type TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `static CodeStackTrackerPREVIEW`
  CodeStackTracker.`of(TypeKindPREVIEW... initialStack)`
  Creates new instance of `CodeStackTracker`PREVIEW initialized with provided stack items.

- ## Uses of TypeKindPREVIEW in java.lang.classfile.constantpoolPREVIEW

  Methods in java.lang.classfile.constantpoolPREVIEW that return TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `default TypeKindPREVIEW`
  ConstantDynamicEntry.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  DoubleEntry.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  FloatEntry.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  IntegerEntry.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  LoadableConstantEntry.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  LongEntry.`typeKind()`
  Returns the type of the constant.

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

  Methods in java.lang.classfile.instructionPREVIEW that return TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `TypeKindPREVIEW`
  ConvertInstruction.`fromType()`
  Returns the source type to convert from.
  `TypeKindPREVIEW`
  ConvertInstruction.`toType()`
  Returns the destination type to convert to.
  `TypeKindPREVIEW`
  ArrayLoadInstruction.`typeKind()`
  Returns the component type of the array.
  `TypeKindPREVIEW`
  ArrayStoreInstruction.`typeKind()`
  Returns the component type of the array.
  `default TypeKindPREVIEW`
  ConstantInstruction.ArgumentConstantInstruction.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  ConstantInstruction.IntrinsicConstantInstruction.`typeKind()`
  Returns the type of the constant.
  `default TypeKindPREVIEW`
  ConstantInstruction.LoadConstantInstruction.`typeKind()`
  Returns the type of the constant.
  `TypeKindPREVIEW`
  ConstantInstruction.`typeKind()`
  Returns the type of the constant.
  `TypeKindPREVIEW`
  LoadInstruction.`typeKind()`
  Returns the type of the value to be loaded.
  `TypeKindPREVIEW`
  NewPrimitiveArrayInstruction.`typeKind()`
  Returns the component type of the array.
  `TypeKindPREVIEW`
  OperatorInstruction.`typeKind()`
  Returns the operand type of the instruction.
  `TypeKindPREVIEW`
  ReturnInstruction.`typeKind()`
  Returns the type of the return instruction.
  `TypeKindPREVIEW`
  StoreInstruction.`typeKind()`
  Returns the type of the value to be stored.
  Methods in java.lang.classfile.instructionPREVIEW with parameters of type TypeKindPREVIEW
  Modifier and Type
  Method
  Description
  `static ConvertInstructionPREVIEW`
  ConvertInstruction.`of(TypeKindPREVIEW fromType, TypeKindPREVIEW toType)`
  Returns A conversion instruction.
  `static LoadInstructionPREVIEW`
  LoadInstruction.`of(TypeKindPREVIEW kind, int slot)`
  Returns a local variable load instruction.
  `static NewPrimitiveArrayInstructionPREVIEW`
  NewPrimitiveArrayInstruction.`of(TypeKindPREVIEW typeKind)`
  Returns a new primitive array instruction.
  `static ReturnInstructionPREVIEW`
  ReturnInstruction.`of(TypeKindPREVIEW typeKind)`
  Returns a return instruction.
  `static StoreInstructionPREVIEW`
  StoreInstruction.`of(TypeKindPREVIEW kind, int slot)`
  Returns a local variable store instruction.