Class TargetType
java.lang.Object
net.bytebuddy.dynamic.TargetType
This type is used as a place holder for creating methods or fields that refer to the type that currently subject
of creation within a
DynamicType.Builder.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAn unusable constructor to avoid instance creation. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeDescriptionresolve(TypeDescription typeDescription, TypeDescription targetType) Resolves the given type description to the supplied target type if it represents theTargetTypeplaceholder.
-
Field Details
-
DESCRIPTION
A description of theTargetType.
-
-
Constructor Details
-
TargetType
private TargetType()An unusable constructor to avoid instance creation.
-
-
Method Details
-
resolve
Resolves the given type description to the supplied target type if it represents theTargetTypeplaceholder. 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 theTargetTypeplaceholder.targetType- The actual target type.- Returns:
- A description of the resolved type.
-