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 TypeDescription
exceptionType
The exception type being handled.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Enabled(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 StackManipulation
wrap(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:
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.
-
-