Top Description Methods
java.lang.classfile.constantpool

public sealed Interface FloatEntry

extends AnnotationConstantValueEntry, ConstantValueEntry
Known Direct Implementers
jdk.internal.classfile.impl.AbstractPoolEntry.FloatEntryImpl
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.classfile.TypeKind, jdk.internal.classfile.impl.AbstractPoolEntry, jdk.internal.javac.PreviewFeature

Preview

Second Preview of ClassFile API (JEP 466).

Programs can only use FloatEntry when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.

Models a CONSTANT_Float_info constant in the constant pool of a classfile.
Since
22
Java Virtual Machine Specification
4.4.4 The CONSTANT_Integer_info and CONSTANT_Float_info Structures

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

the float value
floatValue
()

Returns the float value.

public default TypeKind

Returns:

the type of the constant
typeKind
()

Overrides default java.lang.classfile.constantpool.LoadableConstantEntry.typeKind.

Returns the type of the constant.

Inherited from java.lang.classfile.constantpool.AnnotationConstantValueEntry:
constantValue
Inherited from java.lang.classfile.constantpool.ConstantValueEntry:
constantValue

Method Detail

floatValueback to summary
public float floatValue()

Returns the float value.

Returns:float

the float value

typeKindback to summary
public default TypeKind typeKind()

Overrides default java.lang.classfile.constantpool.LoadableConstantEntry.typeKind.

Returns the type of the constant.

Returns:TypeKind

the type of the constant

Annotations
@Override