Package net.bytebuddy.pool
Class TypePool.LazyFacade
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.AbstractBase
-
- net.bytebuddy.pool.TypePool.LazyFacade
-
- All Implemented Interfaces:
TypePool
- Enclosing interface:
- TypePool
@Enhance public static class TypePool.LazyFacade extends TypePool.AbstractBase
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTypePool.LazyFacade.LazyResolutionThe lazy resolution for a lazy facade for a type pool.protected static classTypePool.LazyFacade.LazyTypeDescriptionA description of a type that delegates to another type pool once a property that is not the name is resolved.-
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 TypePooltypePoolThe type pool to delegate to.-
Fields inherited from class net.bytebuddy.pool.TypePool.AbstractBase
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES
-
-
Constructor Summary
Constructors Constructor Description LazyFacade(TypePool typePool)Creates a lazy facade for a type pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears this type pool's cache.protected TypePool.ResolutiondoDescribe(java.lang.String name)Determines a resolution to a non-primitive, non-array type.-
Methods inherited from class net.bytebuddy.pool.TypePool.AbstractBase
describe, doCache
-
-
-
-
Field Detail
-
typePool
private final TypePool typePool
The type pool to delegate to.
-
-
Constructor Detail
-
LazyFacade
public LazyFacade(TypePool typePool)
Creates a lazy facade for a type pool.- Parameters:
typePool- The type pool to delegate to.
-
-
Method Detail
-
doDescribe
protected TypePool.Resolution doDescribe(java.lang.String name)
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.
-
clear
public void clear()
Clears this type pool's cache.- Specified by:
clearin interfaceTypePool- Overrides:
clearin classTypePool.AbstractBase
-
-