Package net.sf.json.regexp
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.boolean
Returns 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:RegexpMatcher
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
getGroupIfMatches
in interfaceRegexpMatcher
-
matches
Description copied from interface:RegexpMatcher
Returns true is the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.- Specified by:
matches
in interfaceRegexpMatcher
-