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
@Enhance public static class TypePool.Explicit extends TypePool.AbstractBase.Hierarchical
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.Hierarchical
-
Nested 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
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,TypeDescription>
types
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
Constructors Constructor Description Explicit(java.util.Map<java.lang.String,TypeDescription> types)
Creates a new explicit type pool without a parent.Explicit(TypePool parent, java.util.Map<java.lang.String,TypeDescription> types)
Creates a new explicit type pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypePool.Resolution
doDescribe(java.lang.String name)
Determines a resolution to a non-primitive, non-array type.-
Methods inherited from class net.bytebuddy.pool.TypePool.AbstractBase.Hierarchical
clear, describe
-
Methods inherited from class net.bytebuddy.pool.TypePool.AbstractBase
doCache
-
-
-
-
Field Detail
-
types
private final java.util.Map<java.lang.String,TypeDescription> types
A mapping from type names to type descriptions of that name.
-
-
Constructor Detail
-
Explicit
public Explicit(java.util.Map<java.lang.String,TypeDescription> types)
Creates a new explicit type pool without a parent.- Parameters:
types
- A mapping from type names to type descriptions of that name.
-
Explicit
public Explicit(TypePool parent, java.util.Map<java.lang.String,TypeDescription> types)
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 Detail
-
doDescribe
protected TypePool.Resolution doDescribe(java.lang.String name)
Description copied from class:TypePool.AbstractBase
Determines a resolution to a non-primitive, non-array type.- Specified by:
doDescribe
in classTypePool.AbstractBase
- Parameters:
name
- The name of the type to describe.- Returns:
- A resolution to the type to describe.
-
-