Interface JavaConstant.Simple.Dispatcher.OfMethodTypeDesc

    • Method Detail

      • of

        @IsStatic
        java.lang.Object of​(@Proxied("java.lang.constant.ClassDesc")
                            java.lang.Object returnType,
                            @Proxied("java.lang.constant.ClassDesc")
                            java.lang.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
        java.lang.Object ofDescriptor​(java.lang.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

        java.lang.Object returnType​(java.lang.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

        java.lang.Object[] parameterArray​(java.lang.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.