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

    Modifier and Type
    Method
    Description
    Class<?>[]
    parameterArray(Object methodType)
    Extracts the parameter types of the supplied method type.
    returnType(Object methodType)
    Extracts the return type of the supplied method type.
  • Method Details

    • returnType

      Class<?> returnType(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

      Class<?>[] parameterArray(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.