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.| Modifier and Type | Class and Description |
|---|---|
protected class |
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue.Inverted
An inverted version of a value-based skipped dispatcher that triggers upon observing a non-default value.
|
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.Disabled, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForType, Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue| Enum Constant and Description |
|---|
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
boolean, 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 void |
doApply(MethodVisitor methodVisitor,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription.InDefinedShape instrumentedMethod,
Advice.Dispatcher.Bound.SkipHandler skipHandler,
boolean inverted)
Applies this skip dispatcher.
|
protected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher |
of(TypeDefinition typeDefinition,
boolean inverted)
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_INTEGER
boolean, 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 nullprotected static Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher of(TypeDefinition typeDefinition, boolean inverted)
typeDefinition - The type for which to skip a value.inverted - true if the skip condition should be inverted to trigger upon non-default values.public void apply(MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler)
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcherapply in interface Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatchermethodVisitor - 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 void doApply(MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription.InDefinedShape instrumentedMethod, Advice.Dispatcher.Bound.SkipHandler skipHandler, boolean inverted)
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.inverted - true if the skip condition should be inverted.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.public String toString()
toString in class Enum<Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher.ForValue>Copyright © 2014–2016. All rights reserved.