Package org.casbin.jcasbin.util
Class Glob
java.lang.Object
org.casbin.jcasbin.util.Glob
- Since:
- 2021/1/13
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isGlobMeta
(char c) private static boolean
isRegexMeta
(char c) private static char
static String
toRegexPattern
(String globPattern) Creates a regex pattern from the given glob expression.
-
Field Details
-
REGEX_META_CHARS
- See Also:
-
GLOB_META_CHARS
- See Also:
-
-
Constructor Details
-
Glob
public Glob()
-
-
Method Details
-
toRegexPattern
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
-