@HashCodeAndEqualsPlugin.Enhance protected static class Advice.AssignReturned.ExceptionHandler extends Object implements StackManipulation
Modifier and Type | Class and Description |
---|---|
static interface |
Advice.AssignReturned.ExceptionHandler.Factory
A factory for wrapping an assignment with an exception handler, if appropriate.
|
StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial
Modifier | Constructor and Description |
---|---|
protected |
ExceptionHandler(StackManipulation stackManipulation,
StackManipulation exceptionHandler,
TypeDescription exceptionType,
Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler)
Creates a new exception handler for an assignment.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation.Size |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
protected ExceptionHandler(StackManipulation stackManipulation, StackManipulation exceptionHandler, TypeDescription exceptionType, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler)
stackManipulation
- The stack manipulation that represents the assignment.exceptionHandler
- The exception handler to apply.exceptionType
- The exception type to handle.stackMapFrameHandler
- The stack map frame handler to use.public boolean isValid()
isValid
in interface StackManipulation
false
, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext)
apply
in interface StackManipulation
methodVisitor
- The method visitor used to write the method implementation to.implementationContext
- The context of the current implementation.Copyright © 2014–2021. All rights reserved.