Uses of Enum Class
java.lang.classfile.TypeKind
Packages that use TypeKind
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing constant pool entries for the
java.lang.classfile
library.Provides interfaces describing code instructions for the
java.lang.classfile
library.-
Uses of TypeKind in java.lang.classfile
Subclasses with type arguments of type TypeKind in java.lang.classfileModifier and TypeClassDescriptionenum
Describes the data types Java Virtual Machine operates on.Methods in java.lang.classfile that return TypeKindModifier and TypeMethodDescriptionTypeKind.asLoadable()
static TypeKind
TypeKind.from
(TypeDescriptor.OfField<?> descriptor) Returns the type associated with the specified field descriptor.static TypeKind
TypeKind.fromDescriptor
(CharSequence s) Returns the type associated with the specified field descriptor.static TypeKind
TypeKind.fromNewarrayCode
(int newarrayCode) Returns the component type described by the array code used as an operand tonewarray
.static TypeKind
Returns the enum constant of this class with the specified name.static TypeKind[]
TypeKind.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.lang.classfile with parameters of type TypeKindModifier and TypeMethodDescriptionint
CodeBuilder.allocateLocal
(TypeKind typeKind) Returns the local variable slot of a fresh local variable.default CodeBuilder
Generate an instruction to load from an arraydefault CodeBuilder
CodeBuilder.arrayStore
(TypeKind tk) Generate an instruction to store into an arraydefault CodeBuilder
CodeBuilder.conversion
(TypeKind fromType, TypeKind toType) Generate instruction(s) to convertfromType
totoType
default CodeBuilder
Generate an instruction to load a value from a local variabledefault CodeBuilder
Generate an instruction to create a new array of a primitive typedefault CodeBuilder
Generate return instructiondefault CodeBuilder
CodeBuilder.storeLocal
(TypeKind tk, int slot) Generate an instruction to store a value to a local variable -
Uses of TypeKind in java.lang.classfile.constantpool
Methods in java.lang.classfile.constantpool that return TypeKindModifier and TypeMethodDescriptiondefault TypeKind
ConstantDynamicEntry.typeKind()
Returns the data type of this constant.default TypeKind
DoubleEntry.typeKind()
default TypeKind
FloatEntry.typeKind()
default TypeKind
IntegerEntry.typeKind()
default TypeKind
LoadableConstantEntry.typeKind()
Returns the data type of this constant.default TypeKind
LongEntry.typeKind()
Returns the type of the constant. -
Uses of TypeKind in java.lang.classfile.instruction
Methods in java.lang.classfile.instruction that return TypeKindModifier 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.default TypeKind
ConstantInstruction.ArgumentConstantInstruction.typeKind()
default TypeKind
ConstantInstruction.IntrinsicConstantInstruction.typeKind()
default TypeKind
ConstantInstruction.LoadConstantInstruction.typeKind()
ConstantInstruction.typeKind()
Returns the computational type of the constant.LoadInstruction.typeKind()
Returns the computational 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 computational type, includingvoid
, of the return instruction.StoreInstruction.typeKind()
Returns the computational type of the value to be stored.Methods in java.lang.classfile.instruction with parameters of type TypeKindModifier and TypeMethodDescriptionstatic ConvertInstruction
Returns a conversion instruction.static LoadInstruction
Returns a local variable load instruction.static NewPrimitiveArrayInstruction
Returns a new primitive array instruction.static ReturnInstruction
Returns a return instruction.static StoreInstruction
Returns a local variable store instruction.