Package net.bytebuddy.pool
Interface TypePool.Resolution
-
- All Known Implementing Classes:
TypePool.AbstractBase.ArrayTypeResolution
,TypePool.Default.WithLazyResolution.LazyResolution
,TypePool.LazyFacade.LazyResolution
,TypePool.Resolution.Illegal
,TypePool.Resolution.Simple
- Enclosing interface:
- TypePool
public static interface TypePool.Resolution
A resolution of aTypePool
which was queried for a description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TypePool.Resolution.Illegal
A canonical representation of a non-successful resolution of aTypePool
.static class
TypePool.Resolution.Simple
A simple resolution that represents a givenTypeDescription
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isResolved()
Determines if this resolution represents a fully-resolvedTypeDescription
.TypeDescription
resolve()
Resolves this resolution to aTypeDescription
.
-
-
-
Method Detail
-
isResolved
boolean isResolved()
Determines if this resolution represents a fully-resolvedTypeDescription
.- Returns:
true
if the queried type could be resolved.
-
resolve
TypeDescription resolve()
Resolves 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.- Returns:
- The type description that is represented by this resolution.
-
-