public static class GenericTypeDescription.Visitor.Substitutor.ForAttachment extends GenericTypeDescription.Visitor.Substitutor
TargetType with a given declaring type.GenericTypeDescription.Visitor.Substitutor.ForAttachment, GenericTypeDescription.Visitor.Substitutor.ForDetachment, GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBindingGenericTypeDescription.Visitor.ForSignatureVisitor, GenericTypeDescription.Visitor.NoOp, GenericTypeDescription.Visitor.Substitutor, GenericTypeDescription.Visitor.TypeErasing, GenericTypeDescription.Visitor.TypeVariableErasing| Modifier | Constructor and Description |
|---|---|
protected |
ForAttachment(TypeDescription declaringType,
TypeVariableSource typeVariableSource)
Creates a visitor for attaching type variables.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
static GenericTypeDescription.Visitor.Substitutor.ForAttachment |
of(FieldDescription fieldDescription)
Attaches all types to the given field description.
|
static GenericTypeDescription.Visitor.Substitutor.ForAttachment |
of(MethodDescription methodDescription)
Attaches all types to the given method description.
|
static GenericTypeDescription.Visitor.Substitutor.ForAttachment |
of(ParameterDescription parameterDescription)
Attaches all types to the given parameter description.
|
static GenericTypeDescription.Visitor.Substitutor.ForAttachment |
of(TypeDescription typeDescription)
Attaches all types to the given type description.
|
protected GenericTypeDescription |
onSimpleType(GenericTypeDescription typeDescription)
Visits a simple, non-generic type, i.e.
|
GenericTypeDescription |
onTypeVariable(GenericTypeDescription genericTypeDescription)
|
String |
toString() |
onGenericArray, onNonGenericType, onParameterizedType, onWildcardprotected ForAttachment(TypeDescription declaringType, TypeVariableSource typeVariableSource)
declaringType - The declaring type which is filled in for TargetType.typeVariableSource - The source which is used for locating type variables.public static GenericTypeDescription.Visitor.Substitutor.ForAttachment of(FieldDescription fieldDescription)
fieldDescription - The field description to which visited types should be attached to.public static GenericTypeDescription.Visitor.Substitutor.ForAttachment of(MethodDescription methodDescription)
methodDescription - The method description to which visited types should be attached to.public static GenericTypeDescription.Visitor.Substitutor.ForAttachment of(ParameterDescription parameterDescription)
parameterDescription - The parameter description to which visited types should be attached to.public static GenericTypeDescription.Visitor.Substitutor.ForAttachment of(TypeDescription typeDescription)
typeDescription - The type description to which visited types should be attached to.public GenericTypeDescription onTypeVariable(GenericTypeDescription genericTypeDescription)
GenericTypeDescription.VisitorGenericTypeDescription.Sort.VARIABLE,
GenericTypeDescription.Sort.VARIABLE_DETACHED,
GenericTypeDescription.Sort.VARIABLE_SYMBOLIC).genericTypeDescription - The generic array type.protected GenericTypeDescription onSimpleType(GenericTypeDescription typeDescription)
GenericTypeDescription.Visitor.SubstitutoronSimpleType in class GenericTypeDescription.Visitor.SubstitutortypeDescription - The type that is visited.Copyright © 2014–2015. All rights reserved.