Class RegexMatcher
java.lang.Object
ca.phon.phonex.RegexMatcher
- All Implemented Interfaces:
PhoneMatcher
Match phone string against a regular expression.
-
Constructor Summary
ConstructorsConstructorDescriptionRegexMatcher(String regex) Create a new matcher for the given regular expression. -
Method Summary
Modifier and TypeMethodDescriptionbooleanPerform test on given phone.booleanDoes this matcher match anything? Used at runtime to help determine proper backtracking paths.toString()
-
Constructor Details
-
RegexMatcher
Create a new matcher for the given regular expression.- Parameters:
regex-
-
-
Method Details
-
matches
Description copied from interface:PhoneMatcherPerform test on given phone.- Specified by:
matchesin interfacePhoneMatcher
-
matchesAnything
public boolean matchesAnything()Description copied from interface:PhoneMatcherDoes this matcher match anything? Used at runtime to help determine proper backtracking paths.- Specified by:
matchesAnythingin interfacePhoneMatcher
-
toString
-