| java.lang.Object org.apache.tools.ant.util.regexp.JakartaRegexpMatcher
All known Subclasses: org.apache.tools.ant.util.regexp.JakartaRegexpRegexp,
JakartaRegexpMatcher | public class JakartaRegexpMatcher implements RegexpMatcher(Code) | | Implementation of RegexpMatcher for Jakarta-Regexp.
|
getCompiledPattern | protected RE getCompiledPattern(int options) throws BuildException(Code) | | Compile the pattern.
Parameters: options - the ant regexp options a compiled pattern exception: BuildException - if an error occurs |
getCompilerOptions | protected int getCompilerOptions(int options)(Code) | | Convert the generic options to the regex compiler specific options.
Parameters: options - the generic options the specific options |
getGroups | public Vector getGroups(String argument) throws BuildException(Code) | | Returns a Vector of matched groups found in the argument
using default options.
Group 0 will be the full match, the rest are the
parenthesized subexpressions .
Parameters: argument - the string to match against the vector of groups throws: BuildException - on error |
getGroups | public Vector getGroups(String input, int options) throws BuildException(Code) | | Returns a Vector of matched groups found in the argument.
Group 0 will be the full match, the rest are the
parenthesized subexpressions .
Parameters: input - the string to match against Parameters: options - the regex options to use the vector of groups throws: BuildException - on error |
getPattern | public String getPattern()(Code) | | Get a String representation of the regexp pattern
the pattern |
matches | public boolean matches(String argument) throws BuildException(Code) | | Does the given argument match the pattern?
Parameters: argument - the string to match against true if the pattern matches throws: BuildException - on error |
matches | public boolean matches(String input, int options) throws BuildException(Code) | | Does the given argument match the pattern?
Parameters: input - the string to match against Parameters: options - the regex options to use true if the pattern matches throws: BuildException - on error |
setPattern | public void setPattern(String pattern)(Code) | | Set the regexp pattern from the String description.
Parameters: pattern - the pattern to match |
|
|