Class JdkRegexpMatcher
java.lang.Object
net.sf.json.regexp.JdkRegexpMatcher
- All Implemented Interfaces:
RegexpMatcher
JDK 1.4+ RegexpMatcher implementation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJdkRegexpMatcher(String pattern) JdkRegexpMatcher(String pattern, boolean multiline) -
Method Summary
Modifier and TypeMethodDescriptiongetGroupIfMatches(String str, int group) Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.booleanReturns true is the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
-
Field Details
-
pattern
-
-
Constructor Details
-
JdkRegexpMatcher
-
JdkRegexpMatcher
-
-
Method Details
-
getGroupIfMatches
Description copied from interface:RegexpMatcherReturns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
getGroupIfMatchesin interfaceRegexpMatcher
-
matches
Description copied from interface:RegexpMatcherReturns true is the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
matchesin interfaceRegexpMatcher
-