public static enum TypeDescription.Generic.Visitor.TypeErasing extends Enum<TypeDescription.Generic.Visitor.TypeErasing> implements TypeDescription.Generic.Visitor<TypeDescription.Generic>
TypeDescription.Generic.Visitor.AnnotationStripper, TypeDescription.Generic.Visitor.Assigner, TypeDescription.Generic.Visitor.ForRawType, TypeDescription.Generic.Visitor.ForSignatureVisitor, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.Validator
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
onGenericArray(TypeDescription.Generic genericArray)
Visits a generic array type (
Sort#GENERIC_ARRAY ). |
TypeDescription.Generic |
onNonGenericType(TypeDescription.Generic typeDescription)
Visits a non-generic type (
Sort#NON_GENERIC ). |
TypeDescription.Generic |
onParameterizedType(TypeDescription.Generic parameterizedType)
Visits a parameterized type (
Sort#PARAMETERIZED ). |
TypeDescription.Generic |
onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (
Sort#VARIABLE , Sort#VARIABLE_SYMBOLIC ). |
TypeDescription.Generic |
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
static TypeDescription.Generic.Visitor.TypeErasing |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeDescription.Generic.Visitor.TypeErasing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeDescription.Generic.Visitor.TypeErasing INSTANCE
public static TypeDescription.Generic.Visitor.TypeErasing[] values()
for (TypeDescription.Generic.Visitor.TypeErasing c : TypeDescription.Generic.Visitor.TypeErasing.values()) System.out.println(c);
public static TypeDescription.Generic.Visitor.TypeErasing 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 nullpublic TypeDescription.Generic onGenericArray(TypeDescription.Generic genericArray)
Sort#GENERIC_ARRAY
).onGenericArray
in interface TypeDescription.Generic.Visitor<TypeDescription.Generic>
genericArray
- The generic array type.public TypeDescription.Generic onWildcard(TypeDescription.Generic wildcard)
Sort#WILDCARD
).onWildcard
in interface TypeDescription.Generic.Visitor<TypeDescription.Generic>
wildcard
- The wildcard.public TypeDescription.Generic onParameterizedType(TypeDescription.Generic parameterizedType)
Sort#PARAMETERIZED
).onParameterizedType
in interface TypeDescription.Generic.Visitor<TypeDescription.Generic>
parameterizedType
- The generic array type.public TypeDescription.Generic onTypeVariable(TypeDescription.Generic typeVariable)
Sort#VARIABLE
, Sort#VARIABLE_SYMBOLIC
).onTypeVariable
in interface TypeDescription.Generic.Visitor<TypeDescription.Generic>
typeVariable
- The generic array type.public TypeDescription.Generic onNonGenericType(TypeDescription.Generic typeDescription)
Sort#NON_GENERIC
).onNonGenericType
in interface TypeDescription.Generic.Visitor<TypeDescription.Generic>
typeDescription
- The non-generic type.Copyright © 2014–2020. All rights reserved.