Package net.bytebuddy.asm
Class Advice.AssignReturned.Handler.Factory.Simple<S extends Annotation>
java.lang.Object
net.bytebuddy.asm.Advice.AssignReturned.Handler.Factory.Simple<S>
- Type Parameters:
S
- The annotation type that activates this handler factory.
- All Implemented Interfaces:
Advice.AssignReturned.Handler.Factory<S>
- Enclosing interface:
Advice.AssignReturned.Handler.Factory<T extends Annotation>
@Enhance
public static class Advice.AssignReturned.Handler.Factory.Simple<S extends Annotation>
extends Object
implements Advice.AssignReturned.Handler.Factory<S>
A simple implementation of a
Advice.AssignReturned.Handler.Factory
that resolves a given list of Advice.AssignReturned.Handler
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.AssignReturned.Handler.Factory
Advice.AssignReturned.Handler.Factory.Simple<S extends Annotation>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimple
(Class<S> type, List<Advice.AssignReturned.Handler> handlers) Creates a new simple handler. -
Method Summary
Modifier and TypeMethodDescriptionReturns the annotation type that activates this handler factory.make
(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends S> annotation) Resolves a list of handlers for this factory.
-
Field Details
-
type
The annotation type that activates this handler factory. -
handlers
The handlers this factory should return.
-
-
Constructor Details
-
Simple
Creates a new simple handler.- Parameters:
type
- The annotation type that activates this handler factory.handlers
- The handlers this factory should return.
-
-
Method Details
-
getAnnotationType
Returns the annotation type that activates this handler factory.- Specified by:
getAnnotationType
in interfaceAdvice.AssignReturned.Handler.Factory<S extends Annotation>
- Returns:
- The annotation type that activates this handler factory.
-
make
public List<Advice.AssignReturned.Handler> make(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends S> annotation) Resolves a list of handlers for this factory.- Specified by:
make
in interfaceAdvice.AssignReturned.Handler.Factory<S extends Annotation>
- 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.
-