Interface JavaConstant.MethodType.Dispatcher

  • Enclosing class:
    JavaConstant.MethodType

    @Proxied("java.lang.invoke.MethodType")
    protected static interface JavaConstant.MethodType.Dispatcher
    A dispatcher for extracting information from a java.lang.invoke.MethodType instance.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<?>[] parameterArray​(java.lang.Object methodType)
      Extracts the parameter types of the supplied method type.
      java.lang.Class<?> returnType​(java.lang.Object methodType)
      Extracts the return type of the supplied method type.
    • Method Detail

      • returnType

        java.lang.Class<?> returnType​(java.lang.Object methodType)
        Extracts the return type of the supplied method type.
        Parameters:
        methodType - An instance of java.lang.invoke.MethodType.
        Returns:
        The return type that is described by the supplied instance.
      • parameterArray

        java.lang.Class<?>[] parameterArray​(java.lang.Object methodType)
        Extracts the parameter types of the supplied method type.
        Parameters:
        methodType - An instance of java.lang.invoke.MethodType.
        Returns:
        The parameter types that are described by the supplied instance.