|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.util.classutil.RegexClassFilter
public class RegexClassFilter
RegexClassFilter is a ClassFilter that matches class
names using a regular expression. Multiple regular expression filters
can be combined using AndClassFilter and/or
OrClassFilter objects.
This class does not have to load the classes it's filtering; it matches on the class name only.
RegexClassFilter uses the java.util.regex regular expression classes.
ClassFilter,
AndClassFilter,
OrClassFilter,
NotClassFilter,
ClassFinder| Constructor Summary | |
|---|---|
RegexClassFilter(java.lang.String regex)
Construct a new RegexClassFilter using the specified pattern. |
|
RegexClassFilter(java.lang.String regex,
int regexFlags)
Construct a new RegexClassFilter using the specified pattern. |
|
| Method Summary | |
|---|---|
boolean |
accept(ClassInfo classInfo,
ClassFinder classFinder)
Determine whether a class name is to be accepted or not, based on the regular expression specified to the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexClassFilter(java.lang.String regex)
throws java.util.regex.PatternSyntaxException
regex - the regular expression to add
java.util.regex.PatternSyntaxException - bad regular expression
public RegexClassFilter(java.lang.String regex,
int regexFlags)
throws java.util.regex.PatternSyntaxException
regex - the regular expression to addregexFlags - regular expression compilation flags (e.g.,
Pattern.CASE_INSENSITIVE). See
the Javadocs for java.util.regex for
legal values.
java.util.regex.PatternSyntaxException - bad regular expression| Method Detail |
|---|
public boolean accept(ClassInfo classInfo,
ClassFinder classFinder)
accept in interface ClassFilterclassInfo - the ClassInfo object to testclassFinder - the invoking ClassFinder object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||