@HashCodeAndEqualsPlugin.Enhance public abstract static class Advice.Dispatcher.Resolved.AbstractBase extends Object implements Advice.Dispatcher.Resolved
Advice.OffsetMapping.ForArgument.Resolved
dispatcher.Advice.Dispatcher.Resolved.AbstractBase, Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
adviceMethod
The represented advice method.
|
protected Map<Integer,Advice.OffsetMapping> |
offsetMappings
A mapping from offset to a mapping for this offset with retained iteration order of the method's parameters.
|
protected Advice.PostProcessor |
postProcessor
The post processor to apply.
|
protected Advice.Dispatcher.RelocationHandler |
relocationHandler
The relocation handler to use.
|
protected Advice.Dispatcher.SuppressionHandler |
suppressionHandler
The suppression handler to use.
|
IGNORE_ANNOTATION, IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
AbstractBase(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new resolved version of a dispatcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind
getAdviceType
protected final MethodDescription.InDefinedShape adviceMethod
protected final Advice.PostProcessor postProcessor
protected final Map<Integer,Advice.OffsetMapping> offsetMappings
protected final Advice.Dispatcher.SuppressionHandler suppressionHandler
protected final Advice.Dispatcher.RelocationHandler relocationHandler
protected AbstractBase(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, Advice.OffsetMapping.Factory.AdviceType adviceType)
adviceMethod
- The represented advice method.postProcessor
- The post processor to use.factories
- A list of factories to resolve for the parameters of the advice method.throwableType
- The type to handle by a suppression handler or NoExceptionHandler
to not handle any exceptions.relocatableType
- The type to trigger a relocation of the method's control flow or void
if no relocation should be executed.adviceType
- The applied advice type.public boolean isAlive()
true
if this dispatcher is alive.isAlive
in interface Advice.Dispatcher
true
if this dispatcher is alive.Copyright © 2014–2020. All rights reserved.