| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RegexpMatcher
Interface describing a regular expression matcher.
| Field Summary | |
|---|---|
| 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) | 
| Method Summary | |
|---|---|
|  java.util.Vector | getGroups(java.lang.String argument)Returns a Vector of matched groups found in the argument using default options. | 
|  java.util.Vector | getGroups(java.lang.String input,
          int options)Get the match groups from this regular expression. | 
|  java.lang.String | getPattern()Get a String representation of the regexp pattern | 
|  boolean | matches(java.lang.String argument)Does the given argument match the pattern? | 
|  boolean | matches(java.lang.String input,
        int options)Does this regular expression match the input, given certain options | 
|  void | setPattern(java.lang.String pattern)Set the regexp pattern from the String description. | 
| Field Detail | 
|---|
static final int MATCH_DEFAULT
static final int MATCH_CASE_INSENSITIVE
static final int MATCH_MULTILINE
static final int MATCH_SINGLELINE
| Method Detail | 
|---|
void setPattern(java.lang.String pattern)
                throws BuildException
pattern - the pattern to match
BuildException - on error
java.lang.String getPattern()
                            throws BuildException
BuildException - on error
boolean matches(java.lang.String argument)
                throws BuildException
argument - the string to match against
BuildException - on error
java.util.Vector getGroups(java.lang.String argument)
                           throws BuildException
Group 0 will be the full match, the rest are the parenthesized subexpressions
.
argument - the string to match against
BuildException - on error
boolean matches(java.lang.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 error
java.util.Vector getGroups(java.lang.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 error| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||