Package net.bytebuddy.asm
Interface Advice.AssignReturned.Handler.Factory<T extends java.lang.annotation.Annotation>
-
- Type Parameters:
T
- The annotation type that activates this handler factory.
- All Known Implementing Classes:
Advice.AssignReturned.Handler.Factory.Simple
,Advice.AssignReturned.ToAllArguments.Handler.Factory
,Advice.AssignReturned.ToArguments.Handler.Factory
,Advice.AssignReturned.ToFields.Handler.Factory
,Advice.AssignReturned.ToReturned.Handler.Factory
,Advice.AssignReturned.ToThis.Handler.Factory
,Advice.AssignReturned.ToThrown.Handler.Factory
- Enclosing interface:
- Advice.AssignReturned.Handler
public static interface Advice.AssignReturned.Handler.Factory<T extends java.lang.annotation.Annotation>
A factory for resolving a handler for a given advice method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Advice.AssignReturned.Handler.Factory.Simple<S extends java.lang.annotation.Annotation>
A simple implementation of aAdvice.AssignReturned.Handler.Factory
that resolves a given list ofAdvice.AssignReturned.Handler
s.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<T>
getAnnotationType()
Returns the annotation type that activates this handler factory.java.util.List<Advice.AssignReturned.Handler>
make(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends T> annotation)
Resolves a list of handlers for this factory.
-
-
-
Method Detail
-
getAnnotationType
java.lang.Class<T> getAnnotationType()
Returns the annotation type that activates this handler factory.- Returns:
- The annotation type that activates this handler factory.
-
make
java.util.List<Advice.AssignReturned.Handler> make(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends T> annotation)
Resolves a list of handlers for this factory.- Parameters:
returnType
- The advice method's return type for which to resolve handlers.exit
-true
if this factory is applied for exit advice.annotation
- The annotation that activated this handler factory.- Returns:
- A list of handlers to apply.
-
-