public static class ClassFilter.Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Class<?>> |
filterClasses(Collection<Class<?>> classes,
ClassFilter filter)
filter a collection of classes with the filter.
|
static Collection<String> |
filterClassNames(Collection<String> classNames,
ClassFilter filter)
filter a collection of class names with the filter.
|
static String |
parseArgs(String str,
int pos)
Parse the arguments for a filter.
|
static String |
toString(ClassFilter filter)
Convert a ClassFilter to a string in a way that the Parser.parse()
can parse it.
|
public static Collection<Class<?>> filterClasses(Collection<Class<?>> classes, ClassFilter filter)
classes - The collection of classes to filter.filter - The filter to apply.public static Collection<String> filterClassNames(Collection<String> classNames, ClassFilter filter)
classNames - The collection of class names to filter.filter - The filter to apply.public static String toString(ClassFilter filter)
filter - The filter to create the string for.public static String parseArgs(String str, int pos)
str - The string to parse.pos - the offset within the string of the opening paren '(' for
the arguments.IllegalArgumentException - if the string can not be parsed.Copyright © 2013-2016 XENEI.com. All Rights Reserved.