|
RegexpMatcher (Apache Ant API)
org.apache.tools.ant.util.regexp
|
Field Summary | |
static int |
MATCH_CASE_INSENSITIVE
Perform a case insenstive match |
static int |
MATCH_DEFAULT
Default Mask (case insensitive, neither multiline nor singleline specified). |
static int |
MATCH_MULTILINE
Treat the input as a multiline input |
static int |
MATCH_SINGLELINE
Treat 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. |
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 |
public static final int MATCH_DEFAULT
public static final int MATCH_CASE_INSENSITIVE
public static final int MATCH_MULTILINE
public static final int MATCH_SINGLELINE
Method Detail |
public void setPattern(java.lang.String pattern) throws BuildException
public java.lang.String getPattern() throws BuildException
public boolean matches(java.lang.String argument) throws BuildException
public java.util.Vector getGroups(java.lang.String argument) throws BuildException
Group 0 will be the full match, the rest are the parenthesized subexpressions
.
public 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
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |