Package net.bytebuddy.pool
Interface TypePool
- All Known Implementing Classes:
TypePool.AbstractBase
,TypePool.AbstractBase.Hierarchical
,TypePool.ClassLoading
,TypePool.Default
,TypePool.Default.WithLazyResolution
,TypePool.Empty
,TypePool.Explicit
,TypePool.LazyFacade
public interface TypePool
A type pool allows the retrieval of
TypeDescription
by its name.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A base implementation of aTypePool
that is managing a cache provider and that handles the description of array and primitive types.static interface
A cache provider for aTypePool
.static class
A type pool that attempts to load a class.static class
A default implementation of aTypePool
that models binary data in the Java byte code format into aTypeDescription
.static enum
An empty type pool that cannot describe any type.static class
A type pool that supplies explicitly known type descriptions.static class
A lazy facade of a type pool that delegates any lookups to another type pool only if another value than the type's name is looked up.static interface
A resolution of aTypePool
which was queried for a description. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears this type pool's cache.Locates and describes the given type by its name.
-
Method Details
-
describe
Locates and describes the given type by its name.- Parameters:
name
- The name of the type to describe. The name is to be written as when callingClass.getName()
.- Returns:
- A resolution of the type to describe. If the type to be described was found, the returned
TypePool.Resolution
represents this type. Otherwise, an illegal resolution is returned.
-
clear
void clear()Clears this type pool's cache.
-