public static enum GenericTypeDescription.Visitor.TypeErasing extends Enum<GenericTypeDescription.Visitor.TypeErasing> implements GenericTypeDescription.Visitor<TypeDescription>
GenericTypeDescription.Visitor.ForSignatureVisitor, GenericTypeDescription.Visitor.NoOp, GenericTypeDescription.Visitor.Substitutor, GenericTypeDescription.Visitor.TypeErasing, GenericTypeDescription.Visitor.TypeVariableErasing
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
public static final GenericTypeDescription.Visitor.TypeErasing INSTANCE
public static GenericTypeDescription.Visitor.TypeErasing[] values()
for (GenericTypeDescription.Visitor.TypeErasing c : GenericTypeDescription.Visitor.TypeErasing.values()) System.out.println(c);
public static GenericTypeDescription.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 onGenericArray(GenericTypeDescription genericArray)
GenericTypeDescription.Visitor
GenericTypeDescription.Sort.GENERIC_ARRAY
).onGenericArray
in interface GenericTypeDescription.Visitor<TypeDescription>
genericArray
- The generic array type.public TypeDescription onWildcard(GenericTypeDescription wildcard)
GenericTypeDescription.Visitor
GenericTypeDescription.Sort.WILDCARD
).onWildcard
in interface GenericTypeDescription.Visitor<TypeDescription>
wildcard
- The wildcard.public TypeDescription onParameterizedType(GenericTypeDescription parameterizedType)
GenericTypeDescription.Visitor
GenericTypeDescription.Sort.PARAMETERIZED
).onParameterizedType
in interface GenericTypeDescription.Visitor<TypeDescription>
parameterizedType
- The generic array type.public TypeDescription onTypeVariable(GenericTypeDescription typeVariable)
GenericTypeDescription.Visitor
GenericTypeDescription.Sort.VARIABLE
,
GenericTypeDescription.Sort.VARIABLE_DETACHED
,
GenericTypeDescription.Sort.VARIABLE_SYMBOLIC
).onTypeVariable
in interface GenericTypeDescription.Visitor<TypeDescription>
typeVariable
- The generic array type.public TypeDescription onNonGenericType(GenericTypeDescription typeDescription)
GenericTypeDescription.Visitor
GenericTypeDescription.Sort.NON_GENERIC
).onNonGenericType
in interface GenericTypeDescription.Visitor<TypeDescription>
typeDescription
- The non-generic type.public String toString()
toString
in class Enum<GenericTypeDescription.Visitor.TypeErasing>
Copyright © 2014–2015. All rights reserved.