Package net.bytebuddy.dynamic
Class TargetType
- java.lang.Object
-
- net.bytebuddy.dynamic.TargetType
-
public final class TargetType extends java.lang.Object
This type is used as a place holder for creating methods or fields that refer to the type that currently subject of creation within aDynamicType.Builder
.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeDescription
DESCRIPTION
A description of theTargetType
.
-
Constructor Summary
Constructors Modifier Constructor Description private
TargetType()
An unusable constructor to avoid instance creation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeDescription
resolve(TypeDescription typeDescription, TypeDescription targetType)
Resolves the given type description to the supplied target type if it represents theTargetType
placeholder.
-
-
-
Field Detail
-
DESCRIPTION
public static final TypeDescription DESCRIPTION
A description of theTargetType
.
-
-
Method Detail
-
resolve
public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType)
Resolves the given type description to the supplied target type if it represents theTargetType
placeholder. Array types are resolved to their component type and rebuilt as an array of the actual target type, if necessary.- Parameters:
typeDescription
- The type description that might represent theTargetType
placeholder.targetType
- The actual target type.- Returns:
- A description of the resolved type.
-
-