Package net.bytebuddy.asm
Class Advice.AssignReturned.ExceptionHandler.Factory.Enabled
java.lang.Object
net.bytebuddy.asm.Advice.AssignReturned.ExceptionHandler.Factory.Enabled
- All Implemented Interfaces:
Advice.AssignReturned.ExceptionHandler.Factory
- Enclosing interface:
Advice.AssignReturned.ExceptionHandler.Factory
@Enhance
public static class Advice.AssignReturned.ExceptionHandler.Factory.Enabled
extends Object
implements Advice.AssignReturned.ExceptionHandler.Factory
A factory that creates an exception handler for a given exception type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.AssignReturned.ExceptionHandler.Factory
Advice.AssignReturned.ExceptionHandler.Factory.Enabled, Advice.AssignReturned.ExceptionHandler.Factory.NoOp
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Enabled
(TypeDescription exceptionType) Creates a factory for an exception handler of the supplied exception type. -
Method Summary
Modifier and TypeMethodDescriptionwrap
(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.
-
Field Details
-
exceptionType
The exception type being handled.
-
-
Constructor Details
-
Enabled
Creates a factory for an exception handler of the supplied exception type.- Parameters:
exceptionType
- The exception type being handled.
-
-
Method Details
-
wrap
public StackManipulation wrap(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.- Specified by:
wrap
in interfaceAdvice.AssignReturned.ExceptionHandler.Factory
- Parameters:
stackManipulation
- The stack manipulation that represents the assignment.exceptionHandler
- The exception handler to apply.stackMapFrameHandler
- The stack map frame handler to use.- Returns:
- The resolved stack manipulation.
-