Top Description Fields Constructors Methods
net.bytebuddy.dynamic

public final Class TargetType

extends Object
Class Inheritance
Imports
edu.umd.cs.findbugs.annotations.SuppressFBWarnings, net.bytebuddy.description.type.TypeDescription

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 net.bytebuddy.dynamic.DynamicType.Builder.

Field Summary

Modifier and TypeField and Description
public static final TypeDescription

Constructor Summary

AccessConstructor and Description
private
TargetType()

An unusable constructor to avoid instance creation.

Method Summary

Modifier and TypeMethod and Description
public static TypeDescription

Returns:

A description of the resolved type.
resolve
(TypeDescription
The type description that might represent the TargetType placeholder.
typeDescription
,
TypeDescription
The actual target type.
targetType
)

Resolves the given type description to the supplied target type if it represents the TargetType placeholder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DESCRIPTIONback to summary
public static final TypeDescription DESCRIPTION

A description of the net.bytebuddy.dynamic.TargetType.

Constructor Detail

TargetTypeback to summary
private TargetType()

An unusable constructor to avoid instance creation.

Method Detail

resolveback to summary
public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType)

Resolves the given type description to the supplied target type if it represents the TargetType placeholder. Array types are resolved to their component type and rebuilt as an array of the actual target type, if necessary.

Parameters
typeDescription:TypeDescription

The type description that might represent the TargetType placeholder.

targetType:TypeDescription

The actual target type.

Returns:TypeDescription

A description of the resolved type.

Annotations
@SuppressFBWarnings:NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE
justification:Assuming component type for array type.