Interface JavaConstant.MethodHandle.MethodHandleInfo

  • Enclosing class:
    JavaConstant.MethodHandle

    @Proxied("java.lang.invoke.MethodHandleInfo")
    protected static interface JavaConstant.MethodHandle.MethodHandleInfo
    A dispatcher to interact with java.lang.invoke.MethodHandleInfo.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getDeclaringClass​(java.lang.Object value)
      Returns the declaring type of the method handle info.
      java.lang.Object getMethodType​(java.lang.Object value)
      Returns the java.lang.invoke.MethodType of the method handle info.
      java.lang.String getName​(java.lang.Object value)
      Returns the name of the method handle info.
      int getReferenceKind​(java.lang.Object value)
      Returns the reference kind of the method handle info.
      java.lang.Object revealDirect​(java.lang.Object handle)
      Returns the java.lang.invoke.MethodHandleInfo of the provided method handle.
    • Method Detail

      • getName

        java.lang.String getName​(java.lang.Object value)
        Returns the name of the method handle info.
        Parameters:
        value - The java.lang.invoke.MethodHandleInfo to resolve.
        Returns:
        The name of the method handle info.
      • getDeclaringClass

        java.lang.Class<?> getDeclaringClass​(java.lang.Object value)
        Returns the declaring type of the method handle info.
        Parameters:
        value - The java.lang.invoke.MethodHandleInfo to resolve.
        Returns:
        The declaring type of the method handle info.
      • getReferenceKind

        int getReferenceKind​(java.lang.Object value)
        Returns the reference kind of the method handle info.
        Parameters:
        value - The java.lang.invoke.MethodHandleInfo to resolve.
        Returns:
        The reference kind of the method handle info.
      • getMethodType

        java.lang.Object getMethodType​(java.lang.Object value)
        Returns the java.lang.invoke.MethodType of the method handle info.
        Parameters:
        value - The java.lang.invoke.MethodHandleInfo to resolve.
        Returns:
        The java.lang.invoke.MethodType of the method handle info.
      • revealDirect

        @IsConstructor
        java.lang.Object revealDirect​(@Proxied("java.lang.invoke.MethodHandle")
                                      java.lang.Object handle)
        Returns the java.lang.invoke.MethodHandleInfo of the provided method handle. This method was available on Java 7 but replaced by a lookup-based method in Java 8 and later.
        Parameters:
        handle - The java.lang.invoke.MethodHandle to resolve.
        Returns:
        A java.lang.invoke.MethodHandleInfo to describe the supplied method handle.