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

public sealed Interface InterfaceMethodRefEntry

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

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

An interface method reference entry is composite:

InterfaceMethodRefEntry( ClassEntry owner, NameAndTypeEntry nameAndType )
InterfaceMethodRefEntry(
    ClassEntry owner,
    NameAndTypeEntry nameAndType
)
where the type in the nameAndType 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::interfaceMethodRefEntry

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