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 Classes Modifier and Type Interface Description static class
TypeVariableSource.Visitor.NoOp
A none-operational implementation of a type variable visitor that simply returns the visited source.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.T
onType(TypeDescription typeDescription)
Applies the visitor on a type.
-
-
-
Method Detail
-
onType
T onType(TypeDescription typeDescription)
Applies the visitor on a type.- Parameters:
typeDescription
- The type onto which this visitor is applied.- Returns:
- The visitor's return value.
-
onMethod
T onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.- Parameters:
methodDescription
- The method onto which this visitor is applied.- Returns:
- The visitor's return value.
-
-