Interface JavaConstant.MethodHandle.Dispatcher

    • Method Detail

      • reveal

        Object reveal​(Object lookup,
                      Object methodHandle)
        Reveals a method handle's information object.
        Parameters:
        lookup - The lookup to be used for introspecting the instance.
        methodHandle - The method handle to be introspected.
        Returns:
        The java.lang.invoke.MethodHandleInfo object that describes the instance.
      • getMethodType

        Object getMethodType​(Object methodHandleInfo)
        Returns a method handle info's method type.
        Parameters:
        methodHandleInfo - The method handle info to introspect.
        Returns:
        The java.lang.invoke.MethodType instance representing the method handle's type.
      • getReferenceKind

        int getReferenceKind​(Object methodHandleInfo)
        Returns the reference kind of the supplied method handle info.
        Parameters:
        methodHandleInfo - The method handle to be introspected.
        Returns:
        The method handle info's reference type.
      • getDeclaringClass

        Class<?> getDeclaringClass​(Object methodHandleInfo)
        Returns the declaring class of the supplied method handle info.
        Parameters:
        methodHandleInfo - The method handle to be introspected.
        Returns:
        The method handle info's declaring class.
      • getName

        String getName​(Object methodHandleInfo)
        Returns the method name of the supplied method handle info.
        Parameters:
        methodHandleInfo - The method handle to be introspected.
        Returns:
        The method handle info's method name.
      • returnType

        Class<?> returnType​(Object methodType)
        Returns the return type of the supplied method type.
        Parameters:
        methodType - The method type to be introspected.
        Returns:
        The method type's return type.
      • parameterArray

        List<? extends Class<?>> parameterArray​(Object methodType)
        Returns the parameter types of the supplied method type.
        Parameters:
        methodType - The method type to be introspected.
        Returns:
        The method type's parameter types.