Uses of Enum Class
java.lang.classfile.TypeKind
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides specific components, transformations, and tools built on top of the
java.lang.classfile
PREVIEW library.Provides interfaces describing classfile constant pool entries for the
java.lang.classfile
PREVIEW library.Provides interfaces describing code instructions for the
java.lang.classfile
PREVIEW library.-
Uses of TypeKindPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeMethodDescriptionTypeKind.asLoadable()
Erase this type kind to the type which will be used for xLOAD, xSTORE, and xRETURN bytecodesTypeKind.from
(TypeDescriptor.OfField<?> descriptor) Returns the type kind associated with the specified field descriptor.TypeKind.fromDescriptor
(CharSequence s) Returns the type kind associated with the specified field descriptor.TypeKind.fromNewArrayCode
(int newarraycode) Returns the type kind associated with the array type described by the array code used as an operand tonewarray
.Opcode.primaryTypeKind()
Returns primary type kind for instructions operating with at least one type, or null otherwise.Opcode.secondaryTypeKind()
Returns secondary type kind for instructions operating with two types, or null otherwise.Returns the enum constant of this class with the specified name.TypeKind.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionint
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 arraydefault CodeBuilderPREVIEW
CodeBuilder.arrayStoreInstruction
(TypeKindPREVIEW tk) Generate an instruction to store into an arraydefault CodeBuilderPREVIEW
CodeBuilder.convertInstruction
(TypeKindPREVIEW fromType, TypeKindPREVIEW toType) Generate a type converting instructiondefault CodeBuilderPREVIEW
CodeBuilder.loadInstruction
(TypeKindPREVIEW tk, int slot) Generate an instruction to load a value from a local variabledefault CodeBuilderPREVIEW
Generate an instruction to create a new array of a primitive typedefault CodeBuilderPREVIEW
CodeBuilder.newPrimitiveArrayInstruction
(TypeKindPREVIEW typeKind) Generate an instruction to create a new array of a primitive typedefault CodeBuilderPREVIEW
CodeBuilder.returnInstruction
(TypeKindPREVIEW tk) Generate return instructiondefault 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
Modifier and TypeMethodDescriptionstatic CodeStackTrackerPREVIEW
Creates new instance ofCodeStackTracker
PREVIEW initialized with provided stack items. -
Uses of TypeKindPREVIEW in java.lang.classfile.constantpoolPREVIEW
Modifier and TypeMethodDescriptionConstantDynamicEntry.typeKind()
Returns the type of the constant.DoubleEntry.typeKind()
Returns the type of the constant.FloatEntry.typeKind()
Returns the type of the constant.IntegerEntry.typeKind()
Returns the type of the constant.LoadableConstantEntry.typeKind()
Returns the type of the constant.LongEntry.typeKind()
Returns the type of the constant. -
Uses of TypeKindPREVIEW in java.lang.classfile.instructionPREVIEW
Modifier and TypeMethodDescriptionConvertInstruction.fromType()
Returns the source type to convert from.ConvertInstruction.toType()
Returns the destination type to convert to.ArrayLoadInstruction.typeKind()
Returns the component type of the array.ArrayStoreInstruction.typeKind()
Returns the component type of the array.ConstantInstruction.ArgumentConstantInstruction.typeKind()
Returns the type of the constant.ConstantInstruction.IntrinsicConstantInstruction.typeKind()
Returns the type of the constant.ConstantInstruction.LoadConstantInstruction.typeKind()
Returns the type of the constant.ConstantInstruction.typeKind()
Returns the type of the constant.LoadInstruction.typeKind()
Returns the type of the value to be loaded.NewPrimitiveArrayInstruction.typeKind()
Returns the component type of the array.OperatorInstruction.typeKind()
Returns the operand type of the instruction.ReturnInstruction.typeKind()
Returns the type of the return instruction.StoreInstruction.typeKind()
Returns the type of the value to be stored.Modifier and TypeMethodDescriptionstatic ConvertInstructionPREVIEW
Returns A conversion instruction.static LoadInstructionPREVIEW
Returns a local variable load instruction.Returns a new primitive array instruction.static ReturnInstructionPREVIEW
Returns a return instruction.static StoreInstructionPREVIEW
Returns a local variable store instruction.