public class Jdk14RegexpMatcher extends Object implements RegexpMatcher
MATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE| Constructor and Description | 
|---|
| Jdk14RegexpMatcher()Constructor for JakartaOroRegexp | 
| Modifier and Type | Method and Description | 
|---|---|
| protected java.util.regex.Pattern | getCompiledPattern(int options)Get a compiled representation of the regexp pattern | 
| protected int | getCompilerOptions(int options)Convert the generic options to the regex compiler specific options. | 
| Vector | getGroups(String argument)Returns a Vector of matched groups found in the argument
 using default options. | 
| Vector | getGroups(String input,
         int options)Returns a Vector of matched groups found in the argument. | 
| String | getPattern()Get a String representation of the regexp pattern | 
| boolean | matches(String argument)Does the given argument match the pattern using default options? | 
| boolean | matches(String input,
       int options)Does the given argument match the pattern? | 
| void | setPattern(String pattern)Set the regexp pattern from the String description. | 
protected java.util.regex.Pattern getCompiledPattern(int options)
                                              throws BuildException
options - the optionsBuildException - on errorprotected int getCompilerOptions(int options)
options - the generic optionspublic Vector getGroups(String argument) throws BuildException
Group 0 will be the full match, the rest are the parenthesized subexpressions
.getGroups in interface RegexpMatcherargument - the string to match againstBuildException - on errorpublic Vector getGroups(String input, int options) throws BuildException
Group 0 will be the full match, the rest are the parenthesized subexpressions
.getGroups in interface RegexpMatcherinput - the string to match againstoptions - the regex options to useBuildException - on errorpublic String getPattern()
getPattern in interface RegexpMatcherBuildException - on errorpublic boolean matches(String argument) throws BuildException
matches in interface RegexpMatcherargument - the string to match againstBuildException - on errorpublic boolean matches(String input, int options) throws BuildException
matches in interface RegexpMatcherinput - the string to match againstoptions - the regex options to useBuildException - on errorpublic void setPattern(String pattern)
setPattern in interface RegexpMatcherpattern - the pattern to match