Package com.helger.commons.regex
Class RegExPattern
java.lang.Object
com.helger.commons.regex.RegExPattern
This class encapsulates a String and a set of options to be used in Pattern
compilation
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voidcheckPatternConsistency(String sRegEx) static voidenableDebugConsistencyChecks(boolean bEnable) booleanintgetRegEx()inthashCode()toString()
-
Constructor Details
-
RegExPattern
-
RegExPattern
-
-
Method Details
-
areDebugConsistencyChecksEnabled
public static boolean areDebugConsistencyChecksEnabled() -
enableDebugConsistencyChecks
public static void enableDebugConsistencyChecks(boolean bEnable) -
checkPatternConsistency
-
getRegEx
- Returns:
- The source regular expression string. Neither
nullnor empty.
-
getOptions
- Returns:
- The RegEx options provided in the constructor. 0 means no options.
-
getAsPattern
- Returns:
- The precompiled pattern. Never
null.
-
equals
-
hashCode
public int hashCode() -
toString
-