Package net.bytebuddy.description
Interface TypeVariableSource.Visitor<T>
- Type Parameters:
T
- The visitor's return type.
- All Known Implementing Classes:
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor
,TypeVariableSource.Visitor.NoOp
- Enclosing interface:
- TypeVariableSource
public static interface TypeVariableSource.Visitor<T>
A visitor that can be applied to a type variable source.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A none-operational implementation of a type variable visitor that simply returns the visited source. -
Method Summary
Modifier and TypeMethodDescriptiononMethod
(MethodDescription.InDefinedShape methodDescription) Applies the visitor on a method.onType
(TypeDescription typeDescription) Applies the visitor on a type.
-
Method Details
-
onType
Applies the visitor on a type.- Parameters:
typeDescription
- The type onto which this visitor is applied.- Returns:
- The visitor's return value.
-
onMethod
Applies the visitor on a method.- Parameters:
methodDescription
- The method onto which this visitor is applied.- Returns:
- The visitor's return value.
-