Class TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Substitutor
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding
- All Implemented Interfaces:
TypeDescription.Generic.Visitor<TypeDescription.Generic>
- Enclosing class:
TypeDescription.Generic.Visitor.Substitutor
@Enhance
public static class TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding
extends TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
A visitor for binding type variables to their values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classImplementation of a type variable on a method that is not substituted.protected classSubstitutes a type variable, either with a new binding if the variable is defined by a type or with a retained type variable if the variable is defined by a method.Nested classes/interfaces inherited from class TypeDescription.Generic.Visitor.Substitutor
TypeDescription.Generic.Visitor.Substitutor.ForAttachment, TypeDescription.Generic.Visitor.Substitutor.ForDetachment, TypeDescription.Generic.Visitor.Substitutor.ForReplacement, TypeDescription.Generic.Visitor.Substitutor.ForTokenNormalization, TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding, TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitutionNested classes/interfaces inherited from interface TypeDescription.Generic.Visitor
TypeDescription.Generic.Visitor.AnnotationStripper, TypeDescription.Generic.Visitor.Assigner, TypeDescription.Generic.Visitor.ForRawType, TypeDescription.Generic.Visitor.ForSignatureVisitor, TypeDescription.Generic.Visitor.Generalizing, TypeDescription.Generic.Visitor.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.Validator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.GenericThe parameterized type for which type variables are bound. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForTypeVariableBinding(TypeDescription.Generic parameterizedType) Creates a new visitor for binding a parameterized type's type arguments to its type variables. -
Method Summary
Modifier and TypeMethodDescriptiononTypeVariable(TypeDescription.Generic typeVariable) Visits a type variable (TypeDefinition.Sort.VARIABLE,TypeDefinition.Sort.VARIABLE_SYMBOLIC).Methods inherited from class TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
onNonGenericType, onSimpleTypeMethods inherited from class TypeDescription.Generic.Visitor.Substitutor
onGenericArray, onParameterizedType, onWildcard
-
Field Details
-
parameterizedType
The parameterized type for which type variables are bound.
-
-
Constructor Details
-
ForTypeVariableBinding
Creates a new visitor for binding a parameterized type's type arguments to its type variables.- Parameters:
parameterizedType- The parameterized type for which type variables are bound.
-
-
Method Details
-
onTypeVariable
Visits a type variable (TypeDefinition.Sort.VARIABLE,TypeDefinition.Sort.VARIABLE_SYMBOLIC).- Parameters:
typeVariable- The generic array type.- Returns:
- The visitor's return value.
-