Package org.pkl.core.util
Class GlobResolver
java.lang.Object
org.pkl.core.util.GlobResolver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final record -
Method Summary
Modifier and TypeMethodDescriptionresolveGlob(SecurityManager securityManager, ReaderBase reader, ModuleKey enclosingModuleKey, URI enclosingUri, String globPattern) Resolves a glob expression.static PatterntoRegexPattern(String globPattern) static StringtoRegexString(String globPattern) Converts a glob pattern to an equivalent regular expression pattern
-
Method Details
-
toRegexPattern
public static Pattern toRegexPattern(String globPattern) throws GlobResolver.InvalidGlobPatternException -
toRegexString
public static String toRegexString(String globPattern) throws GlobResolver.InvalidGlobPatternException Converts a glob pattern to an equivalent regular expression pattern -
resolveGlob
public static Map<String,GlobResolver.ResolvedGlobElement> resolveGlob(SecurityManager securityManager, ReaderBase reader, ModuleKey enclosingModuleKey, URI enclosingUri, String globPattern) throws IOException, SecurityManagerException, GlobResolver.InvalidGlobPatternException, ExternalReaderProcessException Resolves a glob expression.Each pair is the expanded form of the glob pattern, paired with its resolved absolute URI.
-