Class TypePool.Default.WithLazyResolution.LazyResolution

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

@Enhance(includeSyntheticFields=true) protected class TypePool.Default.WithLazyResolution.LazyResolution extends Object implements TypePool.Resolution
A lazy resolution of a type that the enclosing type pool attempts to resolve.
  • Field Details

    • name

      private final String name
      The type's name.
  • Constructor Details

    • LazyResolution

      protected LazyResolution(String name)
      Creates a new lazy resolution.
      Parameters:
      name - The type's name.
  • 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.