public static enum Advice.Dispatcher.Inactive extends Enum<Advice.Dispatcher.Inactive> implements Advice.Dispatcher, Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
Advice.Dispatcher.Active, Advice.Dispatcher.Inactive, Advice.Dispatcher.ResolvedAdvice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
IGNORE_METHOD| Modifier and Type | Method and Description |
|---|---|
MethodVisitor |
apply(String internalName,
String descriptor,
MethodVisitor methodVisitor,
Advice.FrameTranslator frameTranslator,
MethodDescription.InDefinedShape instrumentedMethod)
Applies this dispatcher for a method that is discovered in the advice class's class file.
|
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.
|
TypeDescription |
getEnterType()
Returns the type that this dispatcher supplies as a result of its advise or a description of
void if
no type is supplied as a result of the enter advise. |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
boolean |
isSkipThrowable()
Indicates if this advise requires to be called when the instrumented method terminates exceptionally.
|
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 advise 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 advise.getEnterType in interface Advice.Dispatcher.Resolved.ForMethodEntervoid.public Advice.Dispatcher.Resolved.ForMethodEnter asMethodEnter()
Advice.DispatcherasMethodEnter in interface Advice.Dispatcherpublic Advice.Dispatcher.Resolved.ForMethodExit asMethodExitTo(Advice.Dispatcher.Resolved.ForMethodEnter dispatcher)
Advice.DispatcherasMethodExitTo in interface Advice.Dispatcherdispatcher - The dispatcher for entering a method.public MethodVisitor apply(String internalName, String descriptor, MethodVisitor methodVisitor, Advice.FrameTranslator frameTranslator, MethodDescription.InDefinedShape instrumentedMethod)
Advice.Dispatcher.Resolvedapply in interface Advice.Dispatcher.ResolvedinternalName - The discovered method's internal name.descriptor - The discovered method's descriptor.methodVisitor - The method visitor for writing the instrumented method.frameTranslator - The frame translator to use.instrumentedMethod - A description of the instrumented method.null if the discovered method is of no interest.public String toString()
toString in class Enum<Advice.Dispatcher.Inactive>Copyright © 2014–2016. All rights reserved.