Package net.bytebuddy.description.type
Class TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor
java.lang.Object
net.bytebuddy.description.type.TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor
- All Implemented Interfaces:
TypeVariableSource.Visitor<TypeDescription.Generic>
- Enclosing class:
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding
@Enhance(includeSyntheticFields=true)
protected class TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor
extends Object
implements TypeVariableSource.Visitor<TypeDescription.Generic>
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 Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.TypeVariableSource.Visitor
TypeVariableSource.Visitor.NoOp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.GenericThe discovered type variable. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypeVariableSubstitutor(TypeDescription.Generic typeVariable) Creates a new type variable substitutor. -
Method Summary
Modifier and TypeMethodDescriptiononMethod(MethodDescription.InDefinedShape methodDescription) Applies the visitor on a method.onType(TypeDescription typeDescription) Applies the visitor on a type.
-
Field Details
-
typeVariable
The discovered type variable.
-
-
Constructor Details
-
TypeVariableSubstitutor
Creates a new type variable substitutor.- Parameters:
typeVariable- The discovered type variable.
-
-
Method Details
-
onType
Applies the visitor on a type.- Specified by:
onTypein interfaceTypeVariableSource.Visitor<TypeDescription.Generic>- Parameters:
typeDescription- The type onto which this visitor is applied.- Returns:
- The visitor's return value.
-
onMethod
Applies the visitor on a method.- Specified by:
onMethodin interfaceTypeVariableSource.Visitor<TypeDescription.Generic>- Parameters:
methodDescription- The method onto which this visitor is applied.- Returns:
- The visitor's return value.
-