public static enum Advice.Dispatcher.Inactive extends Enum<Advice.Dispatcher.Inactive> implements Advice.Dispatcher.Unresolved, Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit, Advice.Dispatcher.Bound
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExitAdvice.Dispatcher.Active, Advice.Dispatcher.Bound, Advice.Dispatcher.Inactive, Advice.Dispatcher.OffsetMapping, Advice.Dispatcher.Resolved, Advice.Dispatcher.Unresolved| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
IGNORE_ANNOTATION, IGNORE_METHOD| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Writes the advice method's code.
|
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.
|
Advice.Dispatcher.Bound |
bind(MethodDescription.InDefinedShape instrumentedMethod,
MethodVisitor methodVisitor,
Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler,
ClassReader classReader)
Binds this dispatcher for resolution to a specific method.
|
TypeDescription |
getEnterType()
Returns the type that this dispatcher supplies as a result of its advice or a description of
void if
no type is supplied as a result of the enter advice. |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
boolean |
isSkipThrowable()
Indicates if this advice requires to be called when the instrumented method terminates exceptionally.
|
void |
prepare()
Prepares the advice method's exception handlers.
|
String |
toString() |
static Advice.Dispatcher.Inactive |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.Inactive[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.Inactive INSTANCE
public static Advice.Dispatcher.Inactive[] values()
for (Advice.Dispatcher.Inactive c : Advice.Dispatcher.Inactive.values()) System.out.println(c);
public static Advice.Dispatcher.Inactive valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isAlive()
Advice.Dispatchertrue if this dispatcher is alive.isAlive in interface Advice.Dispatchertrue if this dispatcher is alive.public boolean isSkipThrowable()
Advice.Dispatcher.Resolved.ForMethodExitisSkipThrowable in interface Advice.Dispatcher.Resolved.ForMethodExittrue if this advice requires to be called when the instrumented method terminates exceptionally.public TypeDescription getEnterType()
Advice.Dispatcher.Resolved.ForMethodEntervoid if
no type is supplied as a result of the enter advice.getEnterType in interface Advice.Dispatcher.Resolved.ForMethodEntervoid.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.public void prepare()
Advice.Dispatcher.Boundprepare in interface Advice.Dispatcher.Boundpublic void apply()
Advice.Dispatcher.Boundapply in interface Advice.Dispatcher.Boundpublic Advice.Dispatcher.Bound bind(MethodDescription.InDefinedShape instrumentedMethod, MethodVisitor methodVisitor, Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler, ClassReader classReader)
Advice.Dispatcher.Resolvedbind in interface Advice.Dispatcher.ResolvedinstrumentedMethod - The instrumented method.methodVisitor - The method visitor for writing the instrumented method.metaDataHandler - A meta data handler for writing to the instrumented method.classReader - A class reader for parsing the class file containing the represented advice method.public String toString()
toString in class Enum<Advice.Dispatcher.Inactive>Copyright © 2014–2016. All rights reserved.