Module java.base

Interface DirectMethodHandleDesc

    • Method Detail


      • refKind

        int refKind()
        Returns the refKind of the method handle described by this nominal reference, as defined by MethodHandleInfo.
        Returns:
        the reference kind

      • isOwnerInterface

        boolean isOwnerInterface()
        Indicates if the method is declared by an interface
        Returns:
        true if the method is declared by an interface

      • owner

        ClassDesc owner()
        Returns a ClassDesc describing the class declaring the method or field described by this nominal descriptor.
        Returns:
        the class declaring the method or field

      • methodName

        String 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

      • lookupDescriptor

        String 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 by MethodHandleDesc.of(Kind, ClassDesc, String, String) .
        Returns:
        the lookup descriptor string