public abstract static class GenericTypeDescription.Visitor.Substitutor extends Object implements GenericTypeDescription.Visitor<GenericTypeDescription>
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericTypeDescription.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 |
GenericTypeDescription.Visitor.Substitutor.ForDetachment
A visitor for detaching a type from its declaration context by detaching type variables.
|
static class |
GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBinding
A visitor for binding type variables to their values.
|
GenericTypeDescription.Visitor.ForSignatureVisitor, GenericTypeDescription.Visitor.NoOp, GenericTypeDescription.Visitor.Substitutor, GenericTypeDescription.Visitor.TypeErasing, GenericTypeDescription.Visitor.TypeVariableErasing| Constructor and Description |
|---|
Substitutor() |
| Modifier and Type | Method and Description |
|---|---|
GenericTypeDescription |
onGenericArray(GenericTypeDescription genericArray)
Visits a generic array type (
GenericTypeDescription.Sort.GENERIC_ARRAY). |
GenericTypeDescription |
onNonGenericType(GenericTypeDescription typeDescription)
Visits a non-generic type (
GenericTypeDescription.Sort.NON_GENERIC). |
GenericTypeDescription |
onParameterizedType(GenericTypeDescription parameterizedType)
Visits a parameterized type (
GenericTypeDescription.Sort.PARAMETERIZED). |
protected abstract GenericTypeDescription |
onSimpleType(GenericTypeDescription typeDescription)
Visits a simple, non-generic type, i.e.
|
GenericTypeDescription |
onWildcard(GenericTypeDescription wildcard)
Visits a wildcard (
GenericTypeDescription.Sort.WILDCARD). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonTypeVariablepublic GenericTypeDescription onParameterizedType(GenericTypeDescription parameterizedType)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.PARAMETERIZED).onParameterizedType in interface GenericTypeDescription.Visitor<GenericTypeDescription>parameterizedType - The generic array type.public GenericTypeDescription onGenericArray(GenericTypeDescription genericArray)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.GENERIC_ARRAY).onGenericArray in interface GenericTypeDescription.Visitor<GenericTypeDescription>genericArray - The generic array type.public GenericTypeDescription onWildcard(GenericTypeDescription wildcard)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.WILDCARD).onWildcard in interface GenericTypeDescription.Visitor<GenericTypeDescription>wildcard - The wildcard.public GenericTypeDescription onNonGenericType(GenericTypeDescription typeDescription)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.NON_GENERIC).onNonGenericType in interface GenericTypeDescription.Visitor<GenericTypeDescription>typeDescription - The non-generic type.protected abstract GenericTypeDescription onSimpleType(GenericTypeDescription typeDescription)
typeDescription - The type that is visited.Copyright © 2014–2015. All rights reserved.