- All Superinterfaces:
- ConstantDesc,- MethodHandleDesc
A nominal descriptor for a direct
 
MethodHandle.  A DirectMethodHandleDesc corresponds to
 a Constant_MethodHandle_info entry in the constant pool of a classfile.- Since:
- 12
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumKinds of method handles that can be described with DirectMethodHandleDesc.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIndicates if the method is declared by an interfacekind()Returns thekindof the method handle described by this nominal descriptor.Returns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode.Returns the name of the method or field described by this nominal descriptor.owner()Returns aClassDescdescribing the class declaring the method or field described by this nominal descriptor.intrefKind()Returns therefKindof the method handle described by this nominal reference, as defined byMethodHandleInfo.Methods declared in interface java.lang.constant.MethodHandleDescasType, equals, invocationType, resolveConstantDesc
- 
Method Details- 
kindDirectMethodHandleDesc.Kind kind()Returns thekindof the method handle described by this nominal descriptor.- Returns:
- the DirectMethodHandleDesc.Kind
 
- 
refKindint refKind()Returns therefKindof the method handle described by this nominal reference, as defined byMethodHandleInfo.- Returns:
- the reference kind
 
- 
isOwnerInterfaceboolean isOwnerInterface()Indicates if the method is declared by an interface- Returns:
- true if the method is declared by an interface
 
- 
ownerClassDesc owner()Returns aClassDescdescribing the class declaring the method or field described by this nominal descriptor.- Returns:
- the class declaring the method or field
 
- 
methodNameString methodName()Returns the name of the method or field described by this nominal descriptor. For constructors, returns the reserved name "<init>".- Returns:
- the name of the method or field
 
- 
lookupDescriptorString lookupDescriptor()Returns the lookup descriptor of the method handle described by this descriptor, after adjusting for the invocation mode. This will correspond to either a method type descriptor string (for methods and constructors), or a field descriptor string (for field access method handles). The lookup descriptor string is in the same format as accepted byMethodHandleDesc.of(Kind, ClassDesc, String, String).- Returns:
- the lookup descriptor string
 
 
-