Class PatternUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.navigator.filters.PatternUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pattern
compileSearchPattern(String regex, boolean onlyInNames)
Compiles searchPattern
from the given regular expression.
-
-
-
Method Detail
-
compileSearchPattern
public static Pattern compileSearchPattern(String regex, boolean onlyInNames)
Compiles searchPattern
from the given regular expression.- Parameters:
regex
- the given regular expression to be compiled, can not benull
onlyInNames
- defines whether to compile pattern to search only by names of model objects or as by names and by types- Returns:
- the compiled search
Pattern
or empty pattern if the given regular expression's syntax is invalid, can not benull
-
-