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
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
-
-
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 boolean
equals(java.lang.Object other)
int
hashCode()
TypeDescription.Generic
onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.TypeDescription.Generic
onType(TypeDescription typeDescription)
Applies the visitor on a type.
-
-
-
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)
Description copied from interface:TypeVariableSource.Visitor
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)
Description copied from interface:TypeVariableSource.Visitor
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.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-