Package io.quarkus.registry.util
Class GlobUtil
- java.lang.Object
-
- io.quarkus.registry.util.GlobUtil
-
@Deprecated(forRemoval=true, since="2.11.0.Final") public class GlobUtil extends Object
Deprecated, for removal: This API element is subject to removal in a future version.UseGlobUtilinstead
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringtoRegexPattern(String glob)Deprecated, for removal: This API element is subject to removal in a future version.UseGlobUtil.toRegexPattern(String)instead
-
-
-
Method Detail
-
toRegexPattern
@Deprecated(forRemoval=true, since="2.11.0.Final") public static String toRegexPattern(String glob)
Deprecated, for removal: This API element is subject to removal in a future version.UseGlobUtil.toRegexPattern(String)insteadTransforms the givenglobto a regular expression suitable for passing toPattern.compile(String).Glob syntax
Construct Description *Matches a (possibly empty) sequence of characters that does not contain slash ( /)**Matches a (possibly empty) sequence of characters that may contain slash ( /)?Matches one character, but not slash [abc]Matches one character given in the bracket, but not slash [a-z]Matches one character from the range given in the bracket, but not slash [!abc]Matches one character not named in the bracket; does not match slash [a-z]Matches one character outside the range given in the bracket; does not match slash {one,two,three}Matches any of the alternating tokens separated by comma; the tokens may contain wildcards, nested alternations and ranges \The escape character - Parameters:
glob- the glob expression to transform- Returns:
- a regular expression suitable for
Pattern - Throws:
IllegalStateException- in case theglobis syntactically invalid
-
-