@HashCodeAndEqualsPlugin.Enhance public static class TypePool.ClassLoading extends TypePool.AbstractBase.Hierarchical
TypePool.AbstractBase.ArrayTypeResolution, TypePool.AbstractBase.ComponentTypeReference, TypePool.AbstractBase.Hierarchical
TypePool.AbstractBase, TypePool.CacheProvider, TypePool.ClassLoading, TypePool.Default, TypePool.Empty, TypePool.Explicit, TypePool.LazyFacade, TypePool.Resolution
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES
Constructor and Description |
---|
ClassLoading(TypePool.CacheProvider cacheProvider,
TypePool parent,
ClassLoader classLoader)
Creates a class loadings type pool.
|
Modifier and Type | Method and Description |
---|---|
protected TypePool.Resolution |
doDescribe(String name)
Determines a resolution to a non-primitive, non-array type.
|
static TypePool |
of(ClassLoader classLoader)
Returns a type pool that attempts type descriptions by loadings types from the given class loader.
|
static TypePool |
of(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
public ClassLoading(TypePool.CacheProvider cacheProvider, TypePool parent, @MaybeNull 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(@MaybeNull ClassLoader classLoader)
classLoader
- The class loader to use.public static TypePool of(@MaybeNull 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(String name)
TypePool.AbstractBase
doDescribe
in class TypePool.AbstractBase
name
- The name of the type to describe.Copyright © 2014–2022. All rights reserved.