Package net.bytebuddy.pool
Class TypePool.Resolution.Simple
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Resolution.Simple
-
- All Implemented Interfaces:
TypePool.Resolution
- Enclosing interface:
- TypePool.Resolution
@Enhance public static class TypePool.Resolution.Simple extends java.lang.Object implements TypePool.Resolution
A simple resolution that represents a givenTypeDescription.
-
-
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 TypeDescriptiontypeDescriptionThe represented type description.
-
Constructor Summary
Constructors Constructor Description Simple(TypeDescription typeDescription)Creates a new successful resolution of a given type description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisResolved()Determines if this resolution represents a fully-resolvedTypeDescription.TypeDescriptionresolve()Resolves this resolution to aTypeDescription.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The represented type description.
-
-
Constructor Detail
-
Simple
public Simple(TypeDescription typeDescription)
Creates a new successful resolution of a given type description.- Parameters:
typeDescription- The represented type description.
-
-
Method Detail
-
isResolved
public boolean isResolved()
Determines if this resolution represents a fully-resolvedTypeDescription.- Specified by:
isResolvedin interfaceTypePool.Resolution- Returns:
trueif 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:
resolvein interfaceTypePool.Resolution- Returns:
- The type description that is represented by this resolution.
-
-