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

## net.sourceforge.pmd.util.filter
Class RegexStringFilter

    java.lang.Object
      net.sourceforge.pmd.util.filter.RegexStringFilter

All Implemented Interfaces:
  Filter<java.lang.String>

    public class RegexStringFilter

extends java.lang.Object
implements Filter<java.lang.String>

A filter to which uses a regular expression to match upon Strings.

Field Summary
`protected java.util.regex.Pattern` | `pattern`
`protected java.lang.String` | `regex`

Constructor Summary
`RegexStringFilter()`
`RegexStringFilter(java.lang.String regex)`

Method Summary
`boolean` | `filter(java.lang.String obj)`
`java.lang.String` | `getRegex()`
`void` | `setRegex(java.lang.String regex)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### regex

    protected java.lang.String regex

### pattern

    protected java.util.regex.Pattern pattern

Constructor Detail

### RegexStringFilter

    public RegexStringFilter()

### RegexStringFilter

    public RegexStringFilter(java.lang.String regex)

Method Detail

### getRegex

    public java.lang.String getRegex()

### setRegex

    public void setRegex(java.lang.String regex)

### filter

    public boolean filter(java.lang.String obj)

  Specified by:
    `filter` in interface `Filter<java.lang.String>`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

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

Copyright © 2002-2009 InfoEther. All Rights Reserved.