public abstract static class TypeDescription.Generic.Visitor.Substitutor extends Object implements TypeDescription.Generic.Visitor<TypeDescription.Generic>
Modifier and Type | Class and Description |
---|---|
static class |
TypeDescription.Generic.Visitor.Substitutor.ForAttachment
A substitutor that attaches type variables to a type variable source and replaces representations of
TargetType with a given declaring type. |
static class |
TypeDescription.Generic.Visitor.Substitutor.ForDetachment
A visitor for detaching a type from its declaration context by detaching type variables.
|
static class |
TypeDescription.Generic.Visitor.Substitutor.ForTokenNormalization
A substitutor that normalizes a token to represent all
TargetType by a given type and that symbolizes all type variables. |
static class |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding
A visitor for binding type variables to their values.
|
static class |
TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
A
TypeDescription.Generic.Visitor.Substitutor that only substitutes type variables but fully preserves non-generic type definitions. |
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
Constructor and Description |
---|
Substitutor() |
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 ). |
protected abstract TypeDescription.Generic |
onSimpleType(TypeDescription.Generic typeDescription)
Visits a simple, non-generic type, i.e.
|
TypeDescription.Generic |
onWildcard(TypeDescription.Generic wildcard)
Visits a wildcard (
Sort#WILDCARD ). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onTypeVariable
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 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 onNonGenericType(TypeDescription.Generic typeDescription)
Sort#NON_GENERIC
).onNonGenericType
in interface TypeDescription.Generic.Visitor<TypeDescription.Generic>
typeDescription
- The non-generic type.protected abstract TypeDescription.Generic onSimpleType(TypeDescription.Generic typeDescription)
typeDescription
- The type that is visited.Copyright © 2014–2020. All rights reserved.