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 classA canonical representation of a non-successful resolution of aTypePool.static classAn exception that indicates that aTypePoolcould not resolve aTypeDescriptionfor a given name.static classA simple resolution that represents a givenTypeDescription. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines 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:
trueif 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.
-