public static class Advice.Dispatcher.Active extends Object implements Advice.Dispatcher
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.Active.CodeTranslationVisitor
A visitor for translating an advise method's byte code for inlining into the instrumented method.
|
protected static class |
Advice.Dispatcher.Active.Resolved
A resolved version of a dispatcher.
|
Advice.Dispatcher.Active, Advice.Dispatcher.Inactive
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
adviseMethod
The advise method.
|
IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
Active(MethodDescription.InDefinedShape adviseMethod)
Creates a dispatcher for active advise.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.Resolved.ForMethodEnter |
asMethodEnter()
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
asMethodExitTo(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 adviseMethod
protected Active(MethodDescription.InDefinedShape adviseMethod)
adviseMethod
- The advise method.public boolean isAlive()
Advice.Dispatcher
true
if this dispatcher is alive.isAlive
in interface Advice.Dispatcher
true
if this dispatcher is alive.public Advice.Dispatcher.Resolved.ForMethodEnter asMethodEnter()
Advice.Dispatcher
asMethodEnter
in interface Advice.Dispatcher
public Advice.Dispatcher.Resolved.ForMethodExit asMethodExitTo(Advice.Dispatcher.Resolved.ForMethodEnter dispatcher)
Advice.Dispatcher
asMethodExitTo
in interface Advice.Dispatcher
dispatcher
- The dispatcher for entering a method.Copyright © 2014–2016. All rights reserved.