Package net.bytebuddy.description.type
Enum Class TypeDescription.Generic.OfParameterizedType.RenderingDelegate
java.lang.Object
java.lang.Enum<TypeDescription.Generic.OfParameterizedType.RenderingDelegate>
net.bytebuddy.description.type.TypeDescription.Generic.OfParameterizedType.RenderingDelegate
- All Implemented Interfaces:
Serializable
,Comparable<TypeDescription.Generic.OfParameterizedType.RenderingDelegate>
,Constable
- Enclosing class:
- TypeDescription.Generic.OfParameterizedType
protected static enum TypeDescription.Generic.OfParameterizedType.RenderingDelegate
extends Enum<TypeDescription.Generic.OfParameterizedType.RenderingDelegate>
A rendering delegate for resolving a parameterized type's
Object.toString()
representation.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA rendering delegate for any VM supporting Java 8 or newer where a type's simple name is appended.A rendering delegate for any VM prior to Java 9 where types are concatenated using a.
character and where the fully qualified names are appended to non-parameterized types. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final TypeDescription.Generic.OfParameterizedType.RenderingDelegate
A rendering delegate for the current VM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
apply
(StringBuilder stringBuilder, TypeDescription erasure, TypeDescription.Generic ownerType) Applies this rendering delegate.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOR_LEGACY_VM
A rendering delegate for any VM prior to Java 9 where types are concatenated using a.
character and where the fully qualified names are appended to non-parameterized types. -
FOR_JAVA_8_CAPABLE_VM
public static final TypeDescription.Generic.OfParameterizedType.RenderingDelegate FOR_JAVA_8_CAPABLE_VMA rendering delegate for any VM supporting Java 8 or newer where a type's simple name is appended.
-
-
Field Details
-
CURRENT
A rendering delegate for the current VM.
-
-
Constructor Details
-
RenderingDelegate
private RenderingDelegate()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
apply
protected abstract void apply(StringBuilder stringBuilder, TypeDescription erasure, @MaybeNull TypeDescription.Generic ownerType) Applies this rendering delegate.- Parameters:
stringBuilder
- The string builder which is used for creating a parameterized type's string representation.erasure
- The rendered type's erasure.ownerType
- The rendered type's owner type which might benull
.
-