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 java.lang.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 Modifier and Type Field Description private TypeDescriptionexceptionTypeThe exception type being handled.
-
Constructor Summary
Constructors Modifier Constructor Description protectedEnabled(TypeDescription exceptionType)Creates a factory for an exception handler of the supplied exception type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulationwrap(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler)Wraps the supplied stack manipulation.
-
-
-
Field Detail
-
exceptionType
private final TypeDescription exceptionType
The exception type being handled.
-
-
Constructor Detail
-
Enabled
protected Enabled(TypeDescription exceptionType)
Creates a factory for an exception handler of the supplied exception type.- Parameters:
exceptionType- The exception type being handled.
-
-
Method Detail
-
wrap
public StackManipulation wrap(StackManipulation stackManipulation, StackManipulation exceptionHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler)
Wraps the supplied stack manipulation.- Specified by:
wrapin 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.
-
-