@HashCodeAndEqualsPlugin.Enhance public static class TypePool.ClassLoading extends TypePool.AbstractBase.Hierarchical
TypePool.AbstractBase.ArrayTypeResolution, TypePool.AbstractBase.Hierarchical, TypePool.AbstractBase.RawAnnotationValue, TypePool.AbstractBase.RawDescriptionArray, TypePool.AbstractBase.RawEnumerationValue, TypePool.AbstractBase.RawTypeValue
TypePool.AbstractBase, TypePool.CacheProvider, TypePool.ClassLoading, TypePool.Default, TypePool.Empty, TypePool.Explicit, TypePool.LazyFacade, TypePool.Resolution
Modifier and Type | Field and Description |
---|---|
private static java.lang.ClassLoader |
BOOTSTRAP_CLASS_LOADER
Type-safe representation of the bootstrap class loader which is
null . |
private java.lang.ClassLoader |
classLoader
The class loader to query.
|
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES
Constructor and Description |
---|
ClassLoading(TypePool.CacheProvider cacheProvider,
TypePool parent,
java.lang.ClassLoader classLoader)
Creates a class loadings type pool.
|
Modifier and Type | Method and Description |
---|---|
protected TypePool.Resolution |
doDescribe(java.lang.String name)
Determines a resolution to a non-primitive, non-array type.
|
static TypePool |
of(java.lang.ClassLoader classLoader)
Returns a type pool that attempts type descriptions by loadings types from the given class loader.
|
static TypePool |
of(java.lang.ClassLoader classLoader,
TypePool parent)
Returns a type pool that attempts type descriptions by loadings types from the given class loader.
|
static TypePool |
ofBootLoader()
Returns a type pool that attempts type descriptions by loadings types from the bootstrap class loader.
|
static TypePool |
ofPlatformLoader()
Returns a type pool that attempts type descriptions by loadings types from the platform class loader.
|
static TypePool |
ofSystemLoader()
Returns a type pool that attempts type descriptions by loadings types from the system class loader.
|
clear, describe
doCache
private static final java.lang.ClassLoader BOOTSTRAP_CLASS_LOADER
null
.private final java.lang.ClassLoader classLoader
public ClassLoading(TypePool.CacheProvider cacheProvider, TypePool parent, java.lang.ClassLoader classLoader)
cacheProvider
- The cache provider to use.parent
- The parent type pool.classLoader
- The class loader to use for locating files.public static TypePool of(java.lang.ClassLoader classLoader)
classLoader
- The class loader to use.public static TypePool of(java.lang.ClassLoader classLoader, TypePool parent)
classLoader
- The class loader to use.parent
- The parent type pool to use.public static TypePool ofSystemLoader()
public static TypePool ofPlatformLoader()
public static TypePool ofBootLoader()
protected TypePool.Resolution doDescribe(java.lang.String name)
TypePool.AbstractBase
doDescribe
in class TypePool.AbstractBase
name
- The name of the type to describe.