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 classA base implementation of aTypePoolthat is managing a cache provider and that handles the description of array and primitive types.static interfaceA cache provider for aTypePool.static classA type pool that attempts to load a class.static classA default implementation of aTypePoolthat models binary data in the Java byte code format into aTypeDescription.static enumAn empty type pool that cannot describe any type.static classA type pool that supplies explicitly known type descriptions.static classA 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 interfaceA resolution of aTypePoolwhich was queried for a description. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()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 callingObject.toString()on a loadedClass.- Returns:
- A resolution of the type to describe. If the type to be described was found, the returned
TypePool.Resolutionrepresents this type. Otherwise, an illegal resolution is returned.
-
clear
void clear()Clears this type pool's cache.
-