net.sf.json.regexp
Interface RegexpMatcher

All Known Implementing Classes:
JdkRegexpMatcher, Perl5RegexpMatcher

public interface RegexpMatcher

Abstraction for regexp handling.

Author:
Andres Almiray

Method Summary
 String getGroupIfMatches(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 matches(String str)
          Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.
 

Method Detail

getGroupIfMatches

String getGroupIfMatches(String str,
                         int group)
Returns the specified group if the string matches the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.


matches

boolean matches(String str)
Returns true is the string macthes the Pattern.
The Pattern will be managed internally by the RegexpMatcher implementation.