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 Classes Modifier and Type Class Description protected class
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable
Implementation of a type variable on a method that is not substituted.protected class
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor
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.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.NoOp, TypeDescription.Generic.Visitor.Reducing, TypeDescription.Generic.Visitor.Reifying, TypeDescription.Generic.Visitor.Substitutor, TypeDescription.Generic.Visitor.TypeErasing, TypeDescription.Generic.Visitor.Validator
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription.Generic
parameterizedType
The parameterized type for which type variables are bound.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForTypeVariableBinding(TypeDescription.Generic parameterizedType)
Creates a new visitor for binding a parameterized type's type arguments to its type variables.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Generic
onTypeVariable(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 Detail
-
parameterizedType
private final TypeDescription.Generic parameterizedType
The parameterized type for which type variables are bound.
-
-
Constructor Detail
-
ForTypeVariableBinding
protected ForTypeVariableBinding(TypeDescription.Generic parameterizedType)
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 Detail
-
onTypeVariable
public TypeDescription.Generic onTypeVariable(TypeDescription.Generic typeVariable)
Visits a type variable (TypeDefinition.Sort.VARIABLE
,TypeDefinition.Sort.VARIABLE_SYMBOLIC
).- Parameters:
typeVariable
- The generic array type.- Returns:
- The visitor's return value.
-
-