public interface Classes
Modifier and Type | Method and Description |
---|---|
static Classes |
byDescription(Class<?> clazz)
specifies a class by a sample class object
|
static Classes |
byDescription(String className)
specifies a class by internal name (i.e. java/lang/String for java.lang.String)
|
static Classes |
byName(String name)
specifies a class by name (common name in this case, i.e. java.lang.String for java.lang.String)
|
static Classes |
byPackage(String name)
specifies a set of classes by package name (common name in this case, i.e. java.lang for java.lang)
|
boolean |
matches(Class<?> type)
defines matching with runtime (reflection) classes.
|
boolean |
matches(String className)
defines matching with compile time class specifications.
|
boolean matches(Class<?> type)
type
- a class specified via reflection or Object.getClass()
boolean matches(String className)
className
- the internal name of the specified class (e.g. java/lang/String for java.lang.String)static Classes byName(String name)
name
- the name of the class (may be abbreviated to the simple name)static Classes byPackage(String name)
name
- the package containing the specified classesstatic Classes byDescription(String className)
className
- the internal name of the classCopyright © 2020. All rights reserved.