Class Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandler
java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.Resolved.AbstractBase
net.bytebuddy.asm.Advice.Dispatcher.Delegating.Resolved
net.bytebuddy.asm.Advice.Dispatcher.Delegating.Resolved.ForMethodExit
net.bytebuddy.asm.Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandler
- All Implemented Interfaces:
Advice.Dispatcher, Advice.Dispatcher.Resolved, Advice.Dispatcher.Resolved.ForMethodExit
- Enclosing class:
Advice.Dispatcher.Delegating.Resolved.ForMethodExit
protected static class Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandler
extends Advice.Dispatcher.Delegating.Resolved.ForMethodExit
Implementation of exit advice that ignores exceptions.
-
Nested Class Summary
Nested classes/interfaces inherited from class Advice.Dispatcher.Delegating.Resolved.ForMethodExit
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithExceptionHandler, Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandlerNested classes/interfaces inherited from class Advice.Dispatcher.Delegating.Resolved
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter, Advice.Dispatcher.Delegating.Resolved.ForMethodEnter, Advice.Dispatcher.Delegating.Resolved.ForMethodExitNested classes/interfaces inherited from interface Advice.Dispatcher
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.UnresolvedNested classes/interfaces inherited from interface Advice.Dispatcher.Resolved
Advice.Dispatcher.Resolved.AbstractBase, Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit -
Field Summary
Fields inherited from class Advice.Dispatcher.Delegating.Resolved
delegatorFields inherited from class Advice.Dispatcher.Resolved.AbstractBase
offsetMappings, postProcessor, relocationHandler, suppressionHandlerFields inherited from interface Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of throwable for which this exit advice is supposed to be invoked.Methods inherited from class Advice.Dispatcher.Delegating.Resolved.ForMethodExit
getAdviceType, getArgumentHandlerFactory, of, resolveMethods inherited from class Advice.Dispatcher.Delegating.Resolved
bind, getNamedTypesMethods inherited from class Advice.Dispatcher.Resolved.AbstractBase
isAliveMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Advice.Dispatcher
isAliveMethods inherited from interface Advice.Dispatcher.Resolved
bind, getNamedTypes
-
Constructor Details
-
WithoutExceptionHandler
protected WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, Map<String, TypeDefinition> namedTypes, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, TypeDefinition enterType, Advice.Delegator delegator) Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.- Parameters:
adviceMethod- The represented advice method.postProcessor- The post processor factory to apply.namedTypes- A mapping of all available local variables by their name to their type.userFactories- A list of user-defined factories for offset mappings.enterType- The type of the value supplied by the enter advice method or a description ofvoidif no such value exists.delegator- The delegator to use.
-
-
Method Details
-
getThrowable
Returns the type of throwable for which this exit advice is supposed to be invoked.- Returns:
- The
Throwabletype for which to invoke this exit advice or a description ofAdvice.NoExceptionHandlerif this exit advice does not expect to be invoked upon any throwable.
-