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 a
TypePool
which was queried for a description.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A canonical representation of a non-successful resolution of aTypePool
.static class
An exception that indicates that aTypePool
could not resolve aTypeDescription
for a given name.static class
A simple resolution that represents a givenTypeDescription
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if this resolution represents a fully-resolvedTypeDescription
.resolve()
Resolves this resolution to aTypeDescription
.
-
Method Details
-
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.
- Throws:
TypePool.Resolution.NoSuchTypeException
- If this resolution is unresolved.
-