Package ca.phon.phonex
Class RegexMatcher
java.lang.Object
ca.phon.phonex.RegexMatcher
- All Implemented Interfaces:
PhoneMatcher
Match phone string against a regular expression.
-
Constructor Summary
ConstructorDescriptionRegexMatcher
(String regex) Create a new matcher for the given regular expression. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Perform test on given phone.boolean
Does 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:PhoneMatcher
Perform test on given phone.- Specified by:
matches
in interfacePhoneMatcher
-
matchesAnything
public boolean matchesAnything()Description copied from interface:PhoneMatcher
Does this matcher match anything? Used at runtime to help determine proper backtracking paths.- Specified by:
matchesAnything
in interfacePhoneMatcher
-
toString
-