Package net.bytebuddy.pool
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
protected class TypePool.Default.WithLazyResolution.LazyResolution extends java.lang.Object implements TypePool.Resolution
A lazy resolution of a type that the enclosing type pool attempts to resolve.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Resolution
TypePool.Resolution.Illegal, TypePool.Resolution.Simple
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LazyResolution(java.lang.String name)
Creates a new lazy resolution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
int
hashCode()
boolean
isResolved()
Determines if this resolution represents a fully-resolvedTypeDescription
.TypeDescription
resolve()
Resolves this resolution to aTypeDescription
.
-
-
-
Method Detail
-
isResolved
public boolean isResolved()
Description copied from interface:TypePool.Resolution
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()
Description copied from interface:TypePool.Resolution
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.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-