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.Resolved
Advice.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,
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.Dispatcher
true
if this dispatcher is alive.isAlive
in interface Advice.Dispatcher
true
if this dispatcher is alive.public boolean isSkipThrowable()
Advice.Dispatcher.Resolved.ForMethodExit
isSkipThrowable
in interface Advice.Dispatcher.Resolved.ForMethodExit
true
if this advise requires to be called when the instrumented method terminates exceptionally.public TypeDescription getEnterType()
Advice.Dispatcher.Resolved.ForMethodEnter
void
if
no type is supplied as a result of the enter advise.getEnterType
in interface Advice.Dispatcher.Resolved.ForMethodEnter
void
.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.public MethodVisitor apply(String internalName, String descriptor, MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod)
Advice.Dispatcher.Resolved
apply
in interface Advice.Dispatcher.Resolved
internalName
- The discovered method's internal name.descriptor
- The discovered method's descriptor.methodVisitor
- The method visitor for writing the instrumented method.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.