Package net.bytebuddy.asm
Class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler
- java.lang.Object
-
- net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved
-
- net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.ForMethodExit
-
- net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler
-
- All Implemented Interfaces:
Advice.Dispatcher
,Advice.Dispatcher.Resolved
,Advice.Dispatcher.Resolved.ForMethodExit
- Enclosing class:
- Advice.Dispatcher.Inlining.Resolved.ForMethodExit
protected static class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler extends Advice.Dispatcher.Inlining.Resolved.ForMethodExit
Implementation of exit advice that ignores exceptions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.ForMethodExit
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.AdviceMethodInliner, Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler, Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler
-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter, Advice.Dispatcher.Inlining.Resolved.ForMethodExit
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Resolved
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved
adviceMethod, classReader, offsetMappings, suppressionHandler
-
Fields inherited from interface net.bytebuddy.asm.Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StackSize
getPadding()
Returns the additional padding this exit advice implies.TypeDescription
getThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.-
Methods inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved.ForMethodExit
apply, bind, equals, hashCode, of
-
Methods inherited from class net.bytebuddy.asm.Advice.Dispatcher.Inlining.Resolved
isAlive
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.asm.Advice.Dispatcher
isAlive
-
-
-
-
Constructor Detail
-
WithoutExceptionHandler
protected WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod, java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.- Parameters:
adviceMethod
- The represented advice method.userFactories
- A list of user-defined factories for offset mappings.classReader
- A class reader to query for the class file of the advice method.enterType
- The type of the value supplied by the enter advice method or a description ofvoid
if no such value exists.
-
-
Method Detail
-
getPadding
protected StackSize getPadding()
Description copied from class:Advice.Dispatcher.Inlining.Resolved.ForMethodExit
Returns the additional padding this exit advice implies.- Specified by:
getPadding
in classAdvice.Dispatcher.Inlining.Resolved.ForMethodExit
- Returns:
- The additional padding this exit advice implies.
-
getThrowable
public TypeDescription getThrowable()
Description copied from interface:Advice.Dispatcher.Resolved.ForMethodExit
Returns the type of throwable for which this exit advice is supposed to be invoked.- Returns:
- The
Throwable
type for which to invoke this exit advice or a description ofAdvice.NoExceptionHandler
if this exit advice does not expect to be invoked upon any throwable.
-
-