Package net.bytebuddy.description.type
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 class
Implementation of a type variable on a method that is not substituted.protected class
Substitutes 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 net.bytebuddy.description.type.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.WithoutTypeSubstitution
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.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.Generic
The parameterized type for which type variables are bound. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForTypeVariableBinding
(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 net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
onNonGenericType, onSimpleType
Methods inherited from class net.bytebuddy.description.type.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.
-