Package net.bytebuddy.pool
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 java.lang.Object implements TypePool.Resolution
A canonical representation of a non-successful resolution of aTypePool
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Resolution
TypePool.Resolution.Illegal, TypePool.Resolution.Simple
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
The name of the unresolved type.
-
Constructor Summary
Constructors Constructor Description Illegal(java.lang.String name)
Creates a new illegal resolution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isResolved()
Determines if this resolution represents a fully-resolvedTypeDescription
.TypeDescription
resolve()
Resolves this resolution to aTypeDescription
.
-
-
-
Method Detail
-
isResolved
public boolean isResolved()
Determines if this resolution represents a fully-resolvedTypeDescription
.- Specified by:
isResolved
in interfaceTypePool.Resolution
- Returns:
true
if the queried type could be resolved.
-
resolve
public 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.- Specified by:
resolve
in interfaceTypePool.Resolution
- Returns:
- The type description that is represented by this resolution.
-
-