public static class Advice.Dispatcher.Delegating extends Object implements Advice.Dispatcher.Unresolved
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.Dispatcher.Delegating.Resolved<T extends Advice.Dispatcher.Bound>
A resolved version of a dispatcher.
|
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.OffsetMapping, Advice.Dispatcher.SuppressionHandler, 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 |
Delegating(MethodDescription.InDefinedShape adviceMethod)
Creates a new delegating advice dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
Advice.Dispatcher.Resolved.ForMethodEnter |
asMethodEnter(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
ClassReader classReader)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
asMethodExitTo(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories,
ClassReader classReader,
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. |
boolean |
isBinary()
Indicates that this dispatcher requires access to the class file declaring the advice method.
|
String |
toString() |
protected final MethodDescription.InDefinedShape adviceMethod
protected Delegating(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 boolean isBinary()
Advice.Dispatcher.UnresolvedisBinary in interface Advice.Dispatcher.Unresolvedtrue if this dispatcher requires access to the advice method's class file.public Advice.Dispatcher.Resolved.ForMethodEnter asMethodEnter(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories, ClassReader classReader)
Advice.Dispatcher.UnresolvedasMethodEnter in interface Advice.Dispatcher.UnresolveduserFactories - A list of custom factories for binding parameters of an advice method.classReader - A class reader to query for a class file which might be null if this dispatcher is not binary.public Advice.Dispatcher.Resolved.ForMethodExit asMethodExitTo(List<? extends Advice.Dispatcher.OffsetMapping.Factory> userFactories, ClassReader classReader, 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.classReader - A class reader to query for a class file which might be null if this dispatcher is not binary.dispatcher - The dispatcher for entering a method.Copyright © 2014–2016. All rights reserved.