public static enum Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue extends Enum<Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue> implements Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
boolean
, the relationship is inversed, where the instrumented is skipped for a true
return value.Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.Disabled, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue
Enum Constant and Description |
---|
FOR_BOOLEAN
A skip dispatcher for a
boolean value. |
FOR_DOUBLE
A skip dispatcher for a
double value. |
FOR_FLOAT
A skip dispatcher for a
float value. |
FOR_INTEGER
A skip dispatcher for a
byte , short , char or int value. |
FOR_LONG
A skip dispatcher for a
long value. |
FOR_REFERENCE
A skip dispatcher for a reference value.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MethodVisitor methodVisitor,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.Bound.SkipHandler skipHandler)
Applies this skip dispatcher.
|
protected abstract void |
convertValue(MethodVisitor methodVisitor,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler)
Converts the return value to an
int value. |
protected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher |
of(TypeDefinition typeDefinition)
Creates an appropriate skip dispatcher.
|
String |
toString() |
static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue[] |
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.ForValue FOR_BOOLEAN
boolean
value.public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue FOR_INTEGER
byte
, short
, char
or int
value.public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue FOR_LONG
long
value.public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue FOR_FLOAT
float
value.public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue FOR_DOUBLE
double
value.public static final Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue FOR_REFERENCE
public static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue[] values()
for (Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue c : Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue.values()) System.out.println(c);
public static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue 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 void apply(MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler)
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
apply
in interface Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
methodVisitor
- The method visitor to write to.methodSizeHandler
- The method size handler of the advice method to use.stackMapFrameHandler
- The stack map frame handler of the advice method to use.instrumentedMethod
- The instrumented method.skipHandler
- The skip handler to use.protected abstract void convertValue(MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler)
int
value.methodVisitor
- The method visitor to use.methodSizeHandler
- The method size handler of the advice method to use.protected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher of(TypeDefinition typeDefinition)
typeDefinition
- The type for which to skip a value.public String toString()
toString
in class Enum<Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue>
Copyright © 2014–2016. All rights reserved.