Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.util.regexp
Interface RegexpMatcher

All Known Implementing Classes:
  JakartaRegexpMatcher, JakartaOroMatcher

public interface RegexpMatcher

Interface describing a regular expression matcher.

Author:
  Stefan Bodewig

Method Summary
`java.util.Vector` | `getGroups(java.lang.String argument)` Returns a Vector of matched groups found in the argument.
`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?
`void` | `setPattern(java.lang.String pattern)` Set the regexp pattern from the String description.

Method Detail

### setPattern

    public void setPattern(java.lang.String pattern)
                    throws BuildException

  Set the regexp pattern from the String description.

### getPattern

    public java.lang.String getPattern()

  Get a String representation of the regexp pattern

### matches

    public boolean matches(java.lang.String argument)

  Does the given argument match the pattern?

### getGroups

    public java.util.Vector getGroups(java.lang.String argument)

  Returns a Vector of matched groups found in the argument.

  Group 0 will be the full match, the rest are the parenthesized subexpressions

  .

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000 Apache Software Foundation. All Rights Reserved.