Package net.bytebuddy.pool
Class TypePool.LazyFacade.LazyResolution
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.LazyFacade.LazyResolution
-
- All Implemented Interfaces:
TypePool.Resolution
- Enclosing class:
- TypePool.LazyFacade
protected static class TypePool.LazyFacade.LazyResolution extends java.lang.Object implements TypePool.Resolution
The lazy resolution for a lazy facade for a type pool.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Resolution
TypePool.Resolution.Illegal, TypePool.Resolution.Simple
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLazyResolution(TypePool typePool, java.lang.String name)Creates a lazy resolution for a lazy facade for a type pool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisResolved()Determines if this resolution represents a fully-resolvedTypeDescription.TypeDescriptionresolve()Resolves this resolution to aTypeDescription.
-
-
-
Constructor Detail
-
LazyResolution
protected LazyResolution(TypePool typePool, java.lang.String name)
Creates a lazy resolution for a lazy facade for a type pool.- Parameters:
typePool- The type pool to delegate to.name- The name of the type that is represented by this resolution.
-
-
Method Detail
-
isResolved
public boolean isResolved()
Description copied from interface:TypePool.ResolutionDetermines if this resolution represents a fully-resolvedTypeDescription.- Specified by:
isResolvedin interfaceTypePool.Resolution- Returns:
trueif the queried type could be resolved.
-
resolve
public TypeDescription resolve()
Description copied from interface:TypePool.ResolutionResolves this resolution to aTypeDescription. If this resolution is unresolved, this method throws an exception either upon invoking this method or upon invoking at least one method of the returned type description.- Specified by:
resolvein interfaceTypePool.Resolution- Returns:
- The type description that is represented by this resolution.
-
-