public static class Advice.Dispatcher.Active extends Object implements Advice.Dispatcher.Unresolved
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.Dispatcher.Active.CodeTranslationVisitor
A visitor for translating an advice method's byte code for inlining into the instrumented method.
|
protected static class |
Advice.Dispatcher.Active.Resolved
A resolved version of a dispatcher.
|
protected static interface |
Advice.Dispatcher.Active.SuppressionHandler
A suppression handler for optionally suppressing exceptions.
|
Advice.Dispatcher.Active, Advice.Dispatcher.Bound, Advice.Dispatcher.Inactive, Advice.Dispatcher.OffsetMapping, Advice.Dispatcher.Unresolved| Modifier and Type | Field and Description |
|---|---|
protected MethodDescription.InDefinedShape |
adviceMethod
The advice method.
|
IGNORE_ANNOTATION, IGNORE_METHOD| Modifier | Constructor and Description |
|---|---|
protected |
Active(MethodDescription.InDefinedShape adviceMethod)
Creates a dispatcher for active advice.
|
| Modifier and Type | Method and Description |
|---|---|
Advice.Dispatcher.Resolved.ForMethodEnter |
asMethodEnter(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
asMethodExitTo(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
Advice.Dispatcher.Resolved.ForMethodEnter dispatcher)
Resolves this dispatcher as a dispatcher for exiting a method.
|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
String |
toString() |
protected final MethodDescription.InDefinedShape adviceMethod
protected Active(MethodDescription.InDefinedShape adviceMethod)
adviceMethod - The advice method.public boolean isAlive()
Advice.Dispatchertrue if this dispatcher is alive.isAlive in interface Advice.Dispatchertrue if this dispatcher is alive.public Advice.Dispatcher.Resolved.ForMethodEnter asMethodEnter(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories)
Advice.Dispatcher.UnresolvedasMethodEnter in interface Advice.Dispatcher.UnresolveduserFactories - A list of custom factories for binding parameters of an advice method.public Advice.Dispatcher.Resolved.ForMethodExit asMethodExitTo(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories, Advice.Dispatcher.Resolved.ForMethodEnter dispatcher)
Advice.Dispatcher.UnresolvedasMethodExitTo in interface Advice.Dispatcher.UnresolveduserFactories - A list of custom factories for binding parameters of an advice method.dispatcher - The dispatcher for entering a method.Copyright © 2014–2016. All rights reserved.