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.
  • Method Details

    • isResolved

      boolean isResolved()
      Determines if this resolution represents a fully-resolved TypeDescription.
      Returns:
      true if the queried type could be resolved.
    • resolve

      TypeDescription resolve()
      Resolves this resolution to a TypeDescription. 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.