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 ofTypeDescription
by its name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TypePool.AbstractBase
A base implementation of aTypePool
that is managing a cache provider and that handles the description of array and primitive types.static interface
TypePool.CacheProvider
A cache provider for aTypePool
.static class
TypePool.ClassLoading
A type pool that attempts to load a class.static class
TypePool.Default
A default implementation of aTypePool
that models binary data in the Java byte code format into aTypeDescription
.static class
TypePool.Empty
An empty type pool that cannot describe any type.static class
TypePool.Explicit
A type pool that supplies explicitly known type descriptions.static class
TypePool.LazyFacade
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
TypePool.Resolution
A resolution of aTypePool
which was queried for a description.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears this type pool's cache.TypePool.Resolution
describe(java.lang.String name)
Locates and describes the given type by its name.
-
-
-
Method Detail
-
describe
TypePool.Resolution describe(java.lang.String name)
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.Resolution
represents this type. Otherwise, an illegal resolution is returned.
-
clear
void clear()
Clears this type pool's cache.
-
-