protected static enum TypeDescription.Generic.OfParameterizedType.RenderingDelegate extends Enum<TypeDescription.Generic.OfParameterizedType.RenderingDelegate>
Object.toString()
representation.Enum Constant and Description |
---|
JAVA_9_CAPABLE_VM
A rendering delegate for any VM supporting Java 9 or newer where a type's simple name is appended.
|
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. |
Modifier and Type | Field and Description |
---|---|
protected static TypeDescription.Generic.OfParameterizedType.RenderingDelegate |
CURRENT
A rendering delegate for the current VM.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
apply(StringBuilder stringBuilder,
TypeDescription typeDescription,
TypeDescription.Generic ownerType)
Applies this rendering delegate.
|
static TypeDescription.Generic.OfParameterizedType.RenderingDelegate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.Generic.OfParameterizedType.RenderingDelegate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.Generic.OfParameterizedType.RenderingDelegate LEGACY_VM
.
character
and where the fully qualified names are appended to non-parameterized types.public static final TypeDescription.Generic.OfParameterizedType.RenderingDelegate JAVA_9_CAPABLE_VM
protected static final TypeDescription.Generic.OfParameterizedType.RenderingDelegate CURRENT
public static TypeDescription.Generic.OfParameterizedType.RenderingDelegate[] values()
for (TypeDescription.Generic.OfParameterizedType.RenderingDelegate c : TypeDescription.Generic.OfParameterizedType.RenderingDelegate.values()) System.out.println(c);
public static TypeDescription.Generic.OfParameterizedType.RenderingDelegate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract void apply(StringBuilder stringBuilder, TypeDescription typeDescription, TypeDescription.Generic ownerType)
stringBuilder
- The string builder which is used for creating a parameterized type's string representation.typeDescription
- The rendered type's erasure.ownerType
- The rendered type's owner type.Copyright © 2014–2017. All rights reserved.