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 java.lang.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
Fields Modifier and Type Field Description private TypeDescription.Generic
typeVariable
The discovered type variable.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypeVariableSubstitutor(TypeDescription.Generic typeVariable)
Creates a new type variable substitutor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Generic
onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.TypeDescription.Generic
onType(TypeDescription typeDescription)
Applies the visitor on a type.
-
-
-
Field Detail
-
typeVariable
private final TypeDescription.Generic typeVariable
The discovered type variable.
-
-
Constructor Detail
-
TypeVariableSubstitutor
protected TypeVariableSubstitutor(TypeDescription.Generic typeVariable)
Creates a new type variable substitutor.- Parameters:
typeVariable
- The discovered type variable.
-
-
Method Detail
-
onType
public TypeDescription.Generic onType(TypeDescription typeDescription)
Applies the visitor on a type.- Specified by:
onType
in interfaceTypeVariableSource.Visitor<TypeDescription.Generic>
- Parameters:
typeDescription
- The type onto which this visitor is applied.- Returns:
- The visitor's return value.
-
onMethod
public TypeDescription.Generic onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.- Specified by:
onMethod
in interfaceTypeVariableSource.Visitor<TypeDescription.Generic>
- Parameters:
methodDescription
- The method onto which this visitor is applied.- Returns:
- The visitor's return value.
-
-