Class Glob


  • public class Glob
    extends java.lang.Object
    Since:
    2021/1/13
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String GLOB_META_CHARS  
      private static java.lang.String REGEX_META_CHARS  
    • Constructor Summary

      Constructors 
      Constructor Description
      Glob()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean isGlobMeta​(char c)  
      private static boolean isRegexMeta​(char c)  
      private static char next​(java.lang.String glob, int i)  
      static java.lang.String toRegexPattern​(java.lang.String globPattern)
      Creates a regex pattern from the given glob expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Glob

        public Glob()
    • Method Detail

      • toRegexPattern

        public static java.lang.String toRegexPattern​(java.lang.String globPattern)
        Creates a regex pattern from the given glob expression.
        Parameters:
        globPattern - the given glob expression
        Returns:
        the regex pattern
      • isRegexMeta

        private static boolean isRegexMeta​(char c)
      • isGlobMeta

        private static boolean isGlobMeta​(char c)
      • next

        private static char next​(java.lang.String glob,
                                 int i)