public interface ClassNameFilter
ClassNameFilter is an interface to support filtering
based on class name, such as when fetching a list of classes from
a JavaClassLocator. Clients can encapsulate their filtering
requirements into a ClassNameFilter implementation. JavaClassLocator| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptClassName(java.lang.String className,
java.lang.String packagePrefix)
Check whether the given class name should be accepted by the
filter implementation.
|
void |
setMatchName(java.lang.String matchName)
Sets the text to use when testing whether or not a class name
is accepted.
|
boolean acceptClassName(java.lang.String className,
java.lang.String packagePrefix)
className - the unqualified class namepackagePrefix - the package prefixvoid setMatchName(java.lang.String matchName)
matchName - the name to match