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

public sealed Interface FieldRefEntry

extends MemberRefEntry
permits FieldRefEntryImpl
Known Direct Implementers
jdk.internal.classfile.impl.AbstractPoolEntry.FieldRefEntryImpl
Imports
java.lang.constant.ClassDesc, jdk.internal.classfile.impl.AbstractPoolEntry, .Util

Models a CONSTANT_Fieldref_info structure, or a symbolic reference to a field, in the constant pool of a class file.

A field reference constant pool entry is composite:

FieldRefEntry( ClassEntry owner, NameAndTypeEntry nameAndType )
FieldRefEntry(
    ClassEntry owner,
    NameAndTypeEntry nameAndType
)
where the nameAndType.type() represents a field descriptor string.
Since
24
Java Virtual Machine Specification
4.4.2 The CONSTANT_Fieldref_info, CONSTANT_Methodref_info, and CONSTANT_InterfaceMethodref_info Structures
See Also
ConstantPoolBuilder::fieldRefEntry

Method Summary

Modifier and TypeMethod and Description
public default ClassDesc

Returns:

a symbolic descriptor for the field type
typeSymbol
()

Returns a symbolic descriptor for the field type.

Inherited from java.lang.classfile.constantpool.MemberRefEntry:
namenameAndTypeownertype

Method Detail

typeSymbolback to summary
public default ClassDesc typeSymbol()

Returns a symbolic descriptor for the field type.

Returns:ClassDesc

a symbolic descriptor for the field type