APIdia Launch Partner
Top Description Methods
java.lang.classfile.constantpool

public sealed Interface ConstantValueEntry

extends LoadableConstantEntry
permits DoubleEntry, FloatEntry, IntegerEntry, LongEntry, StringEntry
Known Direct Subinterfaces
java.lang.classfile.constantpool.DoubleEntry, java.lang.classfile.constantpool.FloatEntry, java.lang.classfile.constantpool.IntegerEntry, java.lang.classfile.constantpool.LongEntry, java.lang.classfile.constantpool.StringEntry
Imports
java.lang.classfile.Attributes, java.lang.constant.ConstantDesc

Marker interface for constant pool entries that can represent constant values in the ConstantValue attribute.
Since
24
See Also
ConstantPoolBuilder::constantValueEntry

Method Summary

Modifier and TypeMethod and Description
public ConstantDesc

Returns:

the constant value
constantValue
()

Redeclares java.lang.classfile.constantpool.LoadableConstantEntry.constantValue.

Returns the constant value.

Inherited from java.lang.classfile.constantpool.LoadableConstantEntry:
typeKind

Method Detail

constantValueback to summary
public ConstantDesc constantValue()

Redeclares java.lang.classfile.constantpool.LoadableConstantEntry.constantValue.

Returns the constant value. The constant value will be an Integer, Long, Float, Double, or String.

Returns:ConstantDesc

the constant value

Annotations
@Override
See Also
ConstantPoolBuilder#constantValueEntry(ConstantDesc)