public interface RegexpMatcher
| Modifier and Type | Field and Description | 
|---|---|
| static int | MATCH_CASE_INSENSITIVEPerform a case insensitive match | 
| static int | MATCH_DEFAULTDefault Mask (case insensitive, neither multiline nor
 singleline specified). | 
| static int | MATCH_MULTILINETreat the input as a multiline input | 
| static int | MATCH_SINGLELINETreat the input as singleline input ('.' matches newline) | 
| Modifier and Type | Method and Description | 
|---|---|
| Vector | getGroups(String argument)Returns a Vector of matched groups found in the argument
 using default options. | 
| Vector | getGroups(String input,
         int options)Get the match groups from this regular expression. | 
| String | getPattern()Get a String representation of the regexp pattern | 
| boolean | matches(String argument)Does the given argument match the pattern? | 
| boolean | matches(String input,
       int options)Does this regular expression match the input, given
 certain options | 
| void | setPattern(String pattern)Set the regexp pattern from the String description. | 
static final int MATCH_CASE_INSENSITIVE
static final int MATCH_DEFAULT
static final int MATCH_MULTILINE
static final int MATCH_SINGLELINE
Vector getGroups(String argument) throws BuildException
Group 0 will be the full match, the rest are the parenthesized subexpressions
.argument - the string to match againstBuildException - on errorVector getGroups(String input, int options) throws BuildException
input - The string to check for a matchoptions - The list of options for the match. See the
                MATCH_ constants above.BuildException - on errorString getPattern() throws BuildException
BuildException - on errorboolean matches(String argument) throws BuildException
argument - the string to match againstBuildException - on errorboolean matches(String input, int options) throws BuildException
input - The string to check for a matchoptions - The list of options for the match. See the
                MATCH_ constants above.BuildException - on errorvoid setPattern(String pattern) throws BuildException
pattern - the pattern to matchBuildException - on error