Interface JavaConstant.Simple.Dispatcher.OfMethodTypeDesc

All Superinterfaces:
JavaConstant.Simple.Dispatcher
Enclosing interface:
JavaConstant.Simple.Dispatcher

@Proxied("java.lang.constant.MethodTypeDesc") public static interface JavaConstant.Simple.Dispatcher.OfMethodTypeDesc extends JavaConstant.Simple.Dispatcher
A dispatcher to represent java.lang.constant.MethodTypeDesc.
  • Method Details

    • of

      @IsStatic Object of(@Proxied("java.lang.constant.ClassDesc") Object returnType, @Proxied("java.lang.constant.ClassDesc") Object[] parameterType)
      Resolves a java.lang.constant.MethodTypeDesc from descriptions of the return type descriptor and parameter types.
      Parameters:
      returnType - A java.lang.constant.ClassDesc representing the return type.
      parameterType - An array of java.lang.constant.ClassDescs representing the parameter types.
      Returns:
      An appropriate java.lang.constant.MethodTypeDesc.
    • ofDescriptor

      @IsStatic Object ofDescriptor(String descriptor)
      Returns a java.lang.constant.MethodTypeDesc for a given descriptor.
      Parameters:
      descriptor - The method type's descriptor.
      Returns:
      A java.lang.constant.MethodTypeDesc of the supplied descriptor
    • returnType

      Object returnType(Object value)
      Returns the return type of a java.lang.constant.MethodTypeDesc.
      Parameters:
      value - The java.lang.constant.MethodTypeDesc to resolve.
      Returns:
      A java.lang.constant.ClassDesc of the supplied java.lang.constant.MethodTypeDesc's return type.
    • parameterArray

      Object[] parameterArray(Object value)
      Returns the parameter types of a java.lang.constant.MethodTypeDesc.
      Parameters:
      value - The java.lang.constant.MethodTypeDesc to resolve.
      Returns:
      An array of java.lang.constant.ClassDesc of the supplied java.lang.constant.MethodTypeDesc's parameter types.