- All Superinterfaces:
ClassFileElement,LoadableConstantEntry,PoolEntry,WritableElement<PoolEntry>
- All Known Implementing Classes:
AbstractPoolEntry.MethodTypeEntryImpl
public sealed interface MethodTypeEntry
extends LoadableConstantEntry
permits AbstractPoolEntry.MethodTypeEntryImpl
Models a
CONSTANT_MethodType_info constant in the constant pool of a
classfile.- Since:
- 22
- Jvms:
- 4.4.9 The CONSTANT_MethodType_info Structure
-
Method Summary
Modifier and TypeMethodDescriptionasSymbol()Returns a symbolic descriptor for the method type.default ConstantDescReturns the constant described by this entry.Returns the constant pool entry describing the method type.Methods inherited from interface org.glavo.classfile.constantpool.LoadableConstantEntry
typeKindMethods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
constantValue
Description copied from interface:LoadableConstantEntryReturns the constant described by this entry.- Specified by:
constantValuein interfaceLoadableConstantEntry- Returns:
- the constant described by this entry
-
descriptor
Utf8Entry descriptor()Returns the constant pool entry describing the method type.- Returns:
- the constant pool entry describing the method type
-
asSymbol
MethodTypeDesc asSymbol()Returns a symbolic descriptor for the method type.- Returns:
- a symbolic descriptor for the method type
-