@HashCodeAndEqualsPlugin.Enhance protected static class TypePool.AbstractBase.ArrayTypeResolution extends java.lang.Object implements TypePool.Resolution
TypePool.Resolution.Illegal, TypePool.Resolution.Simple
Modifier and Type | Field and Description |
---|---|
private int |
arity
The arity of the represented array.
|
private TypePool.Resolution |
resolution
The underlying resolution that is represented by this instance.
|
Modifier | Constructor and Description |
---|---|
protected |
ArrayTypeResolution(TypePool.Resolution resolution,
int arity)
Creates a wrapper for another resolution that, if resolved, represents an array type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isResolved()
Determines if this resolution represents a fully-resolved
TypeDescription . |
protected static TypePool.Resolution |
of(TypePool.Resolution resolution,
int arity)
Creates a wrapper for another resolution that, if resolved, represents an array type.
|
TypeDescription |
resolve()
Resolves this resolution to a
TypeDescription . |
private final TypePool.Resolution resolution
private final int arity
protected ArrayTypeResolution(TypePool.Resolution resolution, int arity)
resolution
- The underlying resolution that is represented by this instance.arity
- The arity of the represented array.protected static TypePool.Resolution of(TypePool.Resolution resolution, int arity)
resolution
- The underlying resolution that is represented by this instance.arity
- The arity of the represented array.public boolean isResolved()
TypeDescription
.isResolved
in interface TypePool.Resolution
true
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