Class TypePool.LazyFacade.LazyResolution

java.lang.Object
net.bytebuddy.pool.TypePool.LazyFacade.LazyResolution
All Implemented Interfaces:
TypePool.Resolution
Enclosing class:
TypePool.LazyFacade

@Enhance protected static class TypePool.LazyFacade.LazyResolution extends Object implements TypePool.Resolution
The lazy resolution for a lazy facade for a type pool.
  • Field Details

    • typePool

      private final TypePool typePool
      The type pool to delegate to.
    • name

      private final String name
      The name of the type that is represented by this resolution.
  • Constructor Details

    • LazyResolution

      protected LazyResolution(TypePool typePool, 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 Details

    • isResolved

      public boolean isResolved()
      Determines if this resolution represents a fully-resolved TypeDescription.
      Specified by:
      isResolved in interface TypePool.Resolution
      Returns:
      true if the queried type could be resolved.
    • resolve

      public 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.
      Specified by:
      resolve in interface TypePool.Resolution
      Returns:
      The type description that is represented by this resolution.