Class TypePool.Resolution.Illegal

java.lang.Object
net.bytebuddy.pool.TypePool.Resolution.Illegal
All Implemented Interfaces:
TypePool.Resolution
Enclosing interface:
TypePool.Resolution

@Enhance public static class TypePool.Resolution.Illegal extends Object implements TypePool.Resolution
A canonical representation of a non-successful resolution of a TypePool.
  • Field Details

    • name

      private final String name
      The name of the unresolved type.
  • Constructor Details

    • Illegal

      public Illegal(String name)
      Creates a new illegal resolution.
      Parameters:
      name - The name of the unresolved type.
  • 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.