Class GlobHandler
- java.lang.Object
-
- com.github.victools.jsonschema.plugin.maven.GlobHandler
-
public class GlobHandler extends Object
Conversion logic from globs to regular expressions.
-
-
Constructor Summary
Constructors Constructor Description GlobHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PatterncreateClassOrPackageNameFilter(String input, boolean forPackage)Generate regular expression from the given input for filtering classes on the classpath.
-
-
-
Method Detail
-
createClassOrPackageNameFilter
public static Pattern createClassOrPackageNameFilter(String input, boolean forPackage)
Generate regular expression from the given input for filtering classes on the classpath.- Parameters:
input- either absolute value (with "." as package separator) or glob pattern (with "/" as package separator)forPackage- whether the given input identifies a package- Returns:
- regular expression to filter classes on classpath by
-
-