| java.lang.Object org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher
All known Subclasses: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp,
Jdk14RegexpMatcher | public class Jdk14RegexpMatcher implements RegexpMatcher(Code) | | Implementation of RegexpMatcher for the built-in regexp matcher of
JDK 1.4. UNIX_LINES option is enabled as a default.
|
Jdk14RegexpMatcher | public Jdk14RegexpMatcher()(Code) | | Constructor for JakartaOroRegexp
|
getCompiledPattern | protected Pattern getCompiledPattern(int options) throws BuildException(Code) | | Get a compiled representation of the regexp pattern
Parameters: options - the options the compiled pattern throws: BuildException - on error |
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 throws: BuildException - on error |
matches | public boolean matches(String argument) throws BuildException(Code) | | Does the given argument match the pattern using default options?
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 |
|
|