Top Description Methods
java.lang.classfile.constantpool

public sealed Interface MethodTypeEntry

extends LoadableConstantEntry
Known Direct Implementers
jdk.internal.classfile.impl.AbstractPoolEntry.MethodTypeEntryImpl
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.constant.ConstantDesc, .MethodTypeDesc, jdk.internal.classfile.impl.AbstractPoolEntry, jdk.internal.javac.PreviewFeature

Preview

Second Preview of ClassFile API (JEP 466).

Programs can only use MethodTypeEntry 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_MethodType_info constant in the constant pool of a classfile.
Since
22
Java Virtual Machine Specification
4.4.9 The CONSTANT_MethodType_info Structure

Method Summary

Modifier and TypeMethod and Description
public MethodTypeDesc

Returns:

a symbolic descriptor for the method type
asSymbol
()

Returns a symbolic descriptor for the method type.

public default ConstantDesc
constantValue()

Implements java.lang.classfile.constantpool.LoadableConstantEntry.constantValue.

Returns the constant described by this entry.

public Utf8Entry

Returns:

the constant pool entry describing the method type
descriptor
()

Returns the constant pool entry describing the method type.

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

Method Detail

asSymbolback to summary
public MethodTypeDesc asSymbol()

Returns a symbolic descriptor for the method type.

Returns:MethodTypeDesc

a symbolic descriptor for the method type

constantValueback to summary
public default ConstantDesc constantValue()

Implements java.lang.classfile.constantpool.LoadableConstantEntry.constantValue.

Doc from java.lang.classfile.constantpool.LoadableConstantEntry.constantValue.

Returns the constant described by this entry.

Returns:ConstantDesc

the constant described by this entry

Annotations
@Override
descriptorback to summary
public Utf8Entry descriptor()

Returns the constant pool entry describing the method type.

Returns:Utf8Entry

the constant pool entry describing the method type