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
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 ClassesModifier and TypeClassDescriptionprotected static class
The lazy resolution for a lazy facade for a type pool.protected static class
A 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
FieldsFields inherited from class net.bytebuddy.pool.TypePool.AbstractBase
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears this type pool's cache.protected TypePool.Resolution
doDescribe
(String name) Determines a resolution to a non-primitive, non-array type.Methods inherited from class net.bytebuddy.pool.TypePool.AbstractBase
describe, doCache
-
Field Details
-
typePool
The type pool to delegate to.
-
-
Constructor Details
-
LazyFacade
Creates a lazy facade for a type pool.- Parameters:
typePool
- The type pool to delegate to.
-
-
Method Details
-
doDescribe
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.
-
clear
public void clear()Clears this type pool's cache.- Specified by:
clear
in interfaceTypePool
- Overrides:
clear
in classTypePool.AbstractBase
-