Class RouteParameterRegex

    • Method Detail

      • getRegex

        public static String getRegex​(Class<?> parameterType)
        Gets the regex used for the given parameterType.
        Parameters:
        parameterType - type of the parameter.
        Returns:
        the regex matching the type.
      • getType

        public static Class<?> getType​(String regex)
        Gets the type of the parameter for the given regex.
        Parameters:
        regex - the regex.
        Returns:
        the type of the parameter.
      • getName

        public static String getName​(String regex)
        Gets the name representation of the regex.
        Parameters:
        regex - the regex.
        Returns:
        the name of the parameter type represented by the regex.