public final class TargetType
extends java.lang.Object
DynamicType.Builder
.Modifier and Type | Field and Description |
---|---|
static TypeDescription |
DESCRIPTION
A description of the
TargetType . |
Modifier | Constructor and Description |
---|---|
private |
TargetType()
An unusable constructor to avoid instance creation.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription |
resolve(TypeDescription typeDescription,
TypeDescription targetType)
Resolves the given type description to the supplied target type if it represents the
TargetType placeholder. |
public static final TypeDescription DESCRIPTION
TargetType
.private TargetType()
public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType)
TargetType
placeholder.
Array types are resolved to their component type and rebuilt as an array of the actual target type, if necessary.typeDescription
- The type description that might represent the TargetType
placeholder.targetType
- The actual target type.