public abstract class _AbstractStringFilter extends _AbstractBaseFilter implements StringFilterType
ClassPathFilter.Util| Modifier and Type | Field and Description |
|---|---|
protected Case |
caseSensitivity
Whether the comparison is case sensitive.
|
NO_ARGSABSTRACT_CLASS, ANNOTATION_CLASS, FALSE, INTERFACE_CLASS, TRUE| Modifier | Constructor and Description |
|---|---|
protected |
_AbstractStringFilter(Case caseSensitivity,
Collection<String> strings)
Constructs a new name class filter for a collection of names specifying
case-sensitivity.
|
protected |
_AbstractStringFilter(Case caseSensitivity,
String... strings)
Constructs a new name class filter for an array of names specifying
case-sensitivity.
|
protected |
_AbstractStringFilter(Case caseSensitivity,
String str)
Construct a new name class filter specifying case-sensitivity.
|
protected |
_AbstractStringFilter(Collection<String> strings)
Constructs a new case-sensitive name class filter for a collection of
names.
|
protected |
_AbstractStringFilter(String... strings)
Constructs a new case-sensitive name class filter for an array of names.
|
protected |
_AbstractStringFilter(String str)
Constructs a new case-sensitive name class filter for a single name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> clazz)
Converts class to name and calls accept( className )
|
boolean |
accept(URL url)
Converts url to external form and calls accept( externalForm )
|
void |
addString(String str)
Add a string to the filter.
|
void |
addStrings(Collection<String> strings)
Add a collection of strings to the filter.
|
void |
addStrings(String... strings)
Add an array of strings to the filter.
|
String[] |
args()
Get the arguments for the function.
|
List<String> |
getStrings()
Get the list of strings from the filter.
|
String |
toString() |
equals, filterClasses, filterNames, filterURLs, funcName, getLog, hashCode, loadClassclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, filterClasses, filterNames, filterURLs, funcName, optimizeprotected final Case caseSensitivity
protected _AbstractStringFilter(String str)
str - the string to allow, must not be nullprotected _AbstractStringFilter(Case caseSensitivity, String str)
str - the string to allow, must not be nullcaseSensitivity - how to handle case sensitivity, null = case-sensitiveIllegalArgumentException - if the name is nullprotected _AbstractStringFilter(String... strings)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
protected _AbstractStringFilter(Case caseSensitivity, String... strings)
The array is not cloned, so could be changed after constructing the instance. This would be inadvisable however.
caseSensitivity - how to handle case sensitivity, null means case-sensitivestrings - the array of strings to allow, must not be null or zero lengthprotected _AbstractStringFilter(Collection<String> strings)
strings - the array of strings to allow, must not be null or zero lengthIllegalArgumentException - if the name list is nullClassCastException - if the list does not contain Stringsprotected _AbstractStringFilter(Case caseSensitivity, Collection<String> strings)
caseSensitivity - how to handle case sensitivity, null means case-sensitivestrings - the strings to check against.IllegalArgumentException - if the name list is nullClassCastException - if the list does not contain Stringspublic String[] args()
args in interface ClassPathFilterpublic final void addString(String str)
str - the string to add.public final void addStrings(Collection<String> strings)
strings - the collection of strings to be added.public final void addStrings(String... strings)
strings - The strings to add.public final List<String> getStrings()
public boolean accept(URL url)
accept in interface ClassPathFilterurl - the url to accept.public boolean accept(Class<?> clazz)
accept in interface ClassPathFilterclazz - the clazz to accept.public String toString()
toString in class _AbstractBaseFilterCopyright © 2013-2017 XENEI.com. All Rights Reserved.