public static enum Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher extends Enum<Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher>
Enum Constant and Description |
---|
DISABLED
A disabled skip dispatcher that does not allow for skipping the instrumented method.
|
ENABLED
A enabled skip dispatcher that skips the instrumented method.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
apply(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.Bound.SkipHandler skipHandler)
Applies this skip dispatcher.
|
protected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher |
of(MethodDescription.InDefinedShape adviceMethod)
Resolves a skip dispatcher for an advice method that is annotated with
Advice.OnMethodEnter . |
String |
toString() |
static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher ENABLED
public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher DISABLED
public static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher[] values()
for (Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher c : Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.values()) System.out.println(c);
public static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher 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 nullprotected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher of(MethodDescription.InDefinedShape adviceMethod)
Advice.OnMethodEnter
.adviceMethod
- The advice method for which to resolve a skip dispatcher.protected abstract void apply(MethodVisitor methodVisitor, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler)
methodVisitor
- The method visitor to write to.stackMapFrameHandler
- The stack map frame handler of the advice method to use.instrumentedMethod
- The instrumented method.skipHandler
- The skip handler to use.public String toString()
toString
in class Enum<Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher>
Copyright © 2014–2016. All rights reserved.