Class MethodSignature

    • Constructor Detail

      • MethodSignature

        public MethodSignature​(String value)
        constructs a new MethodSignature.
        Parameters:
        value - String; the descriptor
      • MethodSignature

        public MethodSignature​(Method method)
        constructs a new MethodSignature.
        Parameters:
        method - Method; the method
      • MethodSignature

        public MethodSignature​(Constructor<?> constructor)
        constructs a new MethodSignature.
        Parameters:
        constructor - Constructor<?>; the constructor
    • Method Detail

      • getParameterDescriptor

        public String getParameterDescriptor()
        Returns:
        Returns the parameterDescriptor
      • getReturnDescriptor

        public String getReturnDescriptor()
        Returns:
        Returns the returnDescriptor.
      • getParameterDescriptor

        public static String getParameterDescriptor​(String methodDescriptor)
        Parameters:
        methodDescriptor - String; the methodDescriptor
        Returns:
        Returns the parameterDescriptor
      • getParameterTypes

        public static Class<?>[] getParameterTypes​(String methodDescriptor)
                                            throws ClassNotFoundException
        returns the parameterTypes.
        Parameters:
        methodDescriptor - String; the string
        Returns:
        ClassDescriptor[] the result
        Throws:
        ClassNotFoundException - on incomplete classPath
      • getReturnDescriptor

        public static String getReturnDescriptor​(String methodDescriptor)
        Parameters:
        methodDescriptor - String; the methodDescriptor
        Returns:
        Returns the returnDescriptor
      • getReturnType

        public static Class<?> getReturnType​(String methodDescriptor)
                                      throws ClassNotFoundException
        returns the returnType of this methodDescriptor.
        Parameters:
        methodDescriptor - String; the returnDescriptor
        Returns:
        Returns the returnType
        Throws:
        ClassNotFoundException - on incomplete classPath