protected static class Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler extends Advice.Dispatcher.Inlining.Resolved.ForMethodExit
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler, Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner, Advice.Dispatcher.Inlining.Resolved.ForMethodEnter, Advice.Dispatcher.Inlining.Resolved.ForMethodExit
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.OffsetMapping, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
adviceMethod, offsetMappings, suppressionHandler
IGNORE_ANNOTATION, IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
byte[] binaryRepresentation,
TypeDescription enterType,
TypeDescription triggeringThrowable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
Modifier and Type | Method and Description |
---|---|
protected StackSize |
getPadding()
Returns the additional padding this exit advice implies.
|
TypeDescription |
getTriggeringThrowable()
Returns the type of throwable for which this exit advice is supposed to be invoked.
|
String |
toString() |
apply, equals, hashCode, of
bind, isAlive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bind
isAlive
protected WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod, List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories, byte[] binaryRepresentation, TypeDescription enterType, TypeDescription triggeringThrowable)
adviceMethod
- The represented advice method.userFactories
- A list of user-defined factories for offset mappings.binaryRepresentation
- The binary representation of the advice method.enterType
- The type of the value supplied by the enter advice method or
a description of void
if no such value exists.triggeringThrowable
- The type of the handled throwable type for which this advice is invoked.protected StackSize getPadding()
Advice.Dispatcher.Inlining.Resolved.ForMethodExit
getPadding
in class Advice.Dispatcher.Inlining.Resolved.ForMethodExit
public TypeDescription getTriggeringThrowable()
Advice.Dispatcher.Resolved.ForMethodExit
Throwable
type for which to invoke this exit advice or a description of NoExceptionHandler
if this exit advice does not expect to be invoked upon any throwable.Copyright © 2014–2016. All rights reserved.