Package net.bytebuddy.pool
Class TypePool.Explicit
java.lang.Object
net.bytebuddy.pool.TypePool.AbstractBase
net.bytebuddy.pool.TypePool.AbstractBase.Hierarchical
net.bytebuddy.pool.TypePool.Explicit
- All Implemented Interfaces:
TypePool
- Enclosing interface:
TypePool
A type pool that supplies explicitly known type descriptions.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.pool.TypePool.AbstractBase
TypePool.AbstractBase.ArrayTypeResolution, TypePool.AbstractBase.ComponentTypeReference, TypePool.AbstractBase.HierarchicalNested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool
TypePool.AbstractBase, TypePool.CacheProvider, TypePool.ClassLoading, TypePool.Default, TypePool.Empty, TypePool.Explicit, TypePool.LazyFacade, TypePool.Resolution -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, TypeDescription> A mapping from type names to type descriptions of that name.Fields inherited from class net.bytebuddy.pool.TypePool.AbstractBase
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionExplicit(Map<String, TypeDescription> types) Creates a new explicit type pool without a parent.Explicit(TypePool parent, Map<String, TypeDescription> types) Creates a new explicit type pool. -
Method Summary
Modifier and TypeMethodDescriptionprotected TypePool.ResolutiondoDescribe(String name) Determines a resolution to a non-primitive, non-array type.Methods inherited from class net.bytebuddy.pool.TypePool.AbstractBase.Hierarchical
clear, describeMethods inherited from class net.bytebuddy.pool.TypePool.AbstractBase
doCache
-
Field Details
-
types
A mapping from type names to type descriptions of that name.
-
-
Constructor Details
-
Explicit
Creates a new explicit type pool without a parent.- Parameters:
types- A mapping from type names to type descriptions of that name.
-
Explicit
Creates a new explicit type pool.- Parameters:
parent- The parent type pool.types- A mapping from type names to type descriptions of that name.
-
-
Method Details
-
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.
-