Class TypePool.ClassLoading
java.lang.Object
net.bytebuddy.pool.TypePool.AbstractBase
net.bytebuddy.pool.TypePool.AbstractBase.Hierarchical
net.bytebuddy.pool.TypePool.ClassLoading
- All Implemented Interfaces:
TypePool
- Enclosing interface:
TypePool
A type pool that attempts to load a class.
-
Nested Class Summary
Nested classes/interfaces inherited from class TypePool.AbstractBase
TypePool.AbstractBase.ArrayTypeResolution, TypePool.AbstractBase.ComponentTypeReference, TypePool.AbstractBase.HierarchicalNested classes/interfaces inherited from interface TypePool
TypePool.AbstractBase, TypePool.CacheProvider, TypePool.ClassLoading, TypePool.Default, TypePool.Empty, TypePool.Explicit, TypePool.LazyFacade, TypePool.Resolution -
Field Summary
FieldsFields inherited from class TypePool.AbstractBase
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionClassLoading(TypePool.CacheProvider cacheProvider, TypePool parent, ClassLoader classLoader) Creates a class loadings type pool. -
Method Summary
Modifier and TypeMethodDescriptionprotected TypePool.ResolutiondoDescribe(String name) Determines a resolution to a non-primitive, non-array type.static TypePoolof(ClassLoader classLoader) Returns a type pool that attempts type descriptions by loadings types from the given class loader.static TypePoolof(ClassLoader classLoader, TypePool parent) Returns a type pool that attempts type descriptions by loadings types from the given class loader.static TypePoolReturns a type pool that attempts type descriptions by loadings types from the bootstrap class loader.static TypePoolReturns a type pool that attempts type descriptions by loadings types from the platform class loader.static TypePoolReturns a type pool that attempts type descriptions by loadings types from the system class loader.Methods inherited from class TypePool.AbstractBase.Hierarchical
clear, describeMethods inherited from class TypePool.AbstractBase
doCache
-
Field Details
-
classLoader
The class loader to query.
-
-
Constructor Details
-
ClassLoading
public ClassLoading(TypePool.CacheProvider cacheProvider, TypePool parent, @MaybeNull ClassLoader classLoader) Creates a class loadings type pool.- Parameters:
cacheProvider- The cache provider to use.parent- The parent type pool.classLoader- The class loader to use for locating files.
-
-
Method Details
-
of
Returns a type pool that attempts type descriptions by loadings types from the given class loader.- Parameters:
classLoader- The class loader to use.- Returns:
- An class loading type pool.
-
of
Returns a type pool that attempts type descriptions by loadings types from the given class loader.- Parameters:
classLoader- The class loader to use.parent- The parent type pool to use.- Returns:
- An class loading type pool.
-
ofSystemLoader
Returns a type pool that attempts type descriptions by loadings types from the system class loader.- Returns:
- An class loading type pool for the system class loader.
-
ofPlatformLoader
Returns a type pool that attempts type descriptions by loadings types from the platform class loader. If the current VM is Java 8 or older, the extension class loader is represented instead.- Returns:
- An class loading type pool for the system class loader.
-
ofBootLoader
Returns a type pool that attempts type descriptions by loadings types from the bootstrap class loader.- Returns:
- An class loading type pool for the bootstrap class loader.
-
doDescribe
Description copied from class:TypePool.AbstractBaseDetermines a resolution to a non-primitive, non-array type.- Specified by:
doDescribein classTypePool.AbstractBase- Parameters:
name- The name of the type to describe.- Returns:
- A resolution to the type to describe.
-