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

public sealed Interface MethodRefEntry

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

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

A class method reference entry is composite:

MethodRefEntry( ClassEntry owner, NameAndTypeEntry nameAndType )
MethodRefEntry(
    ClassEntry owner,
    NameAndTypeEntry nameAndType
)
where the type in the NameAndTypeEntry is a method 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::methodRefEntry

Method Summary

Modifier and TypeMethod and Description
public default MethodTypeDesc

Returns:

a symbolic descriptor for the method type
typeSymbol
()

Returns a symbolic descriptor for the method type.

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

Method Detail

typeSymbolback to summary
public default MethodTypeDesc typeSymbol()

Returns a symbolic descriptor for the method type.

Returns:MethodTypeDesc

a symbolic descriptor for the method type