@HashCodeAndEqualsPlugin.Enhance protected static class TypePool.LazyFacade.LazyResolution extends java.lang.Object implements TypePool.Resolution
TypePool.Resolution.Illegal, TypePool.Resolution.Simple| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
The name of the type that is represented by this resolution.
|
private TypePool |
typePool
The type pool to delegate to.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LazyResolution(TypePool typePool,
java.lang.String name)
Creates a lazy resolution for a lazy facade for a type pool.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isResolved()
Determines if this resolution represents a fully-resolved
TypeDescription. |
TypeDescription |
resolve()
Resolves this resolution to a
TypeDescription. |
private final TypePool typePool
private final java.lang.String name
protected LazyResolution(TypePool typePool, java.lang.String name)
typePool - The type pool to delegate to.name - The name of the type that is represented by this resolution.public boolean isResolved()
TypeDescription.isResolved in interface TypePool.Resolutiontrue if the queried type could be resolved.public TypeDescription resolve()
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.resolve in interface TypePool.Resolution