Interface Advice.AssignReturned.ExceptionHandler.Factory
- All Known Implementing Classes:
Advice.AssignReturned.ExceptionHandler.Factory.Enabled, Advice.AssignReturned.ExceptionHandler.Factory.NoOp
- Enclosing class:
Advice.AssignReturned.ExceptionHandler
public static interface Advice.AssignReturned.ExceptionHandler.Factory
A factory for wrapping an assignment with an exception handler, if appropriate.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA factory that creates an exception handler for a given exception type.static enumA non-operational factory that does not produce an exception handler. -
Method Summary
Modifier and TypeMethodDescriptionwrap(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.
-
Method Details
-
wrap
StackManipulation wrap(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler) Wraps the supplied stack manipulation.- 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.
-