public static enum Advice.MethodSizeHandler.NoOp extends Enum<Advice.MethodSizeHandler.NoOp> implements Advice.MethodSizeHandler, Advice.MethodSizeHandler.ForAdvice
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForAdvice, Advice.MethodSizeHandler.NoOp
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
UNDEFINED_SIZE
Modifier and Type | Method and Description |
---|---|
Advice.MethodSizeHandler.ForAdvice |
bindEntry(MethodDescription.InDefinedShape adviceMethod)
Binds a method size handler for the entry advice.
|
Advice.MethodSizeHandler.ForAdvice |
bindExit(MethodDescription.InDefinedShape adviceMethod,
boolean skipThrowable)
Binds the method size handler for the exit advice.
|
int |
compoundLocalVariableLength(int localVariableLength)
Computes a compound local variable array length for the advice and the translated instrumented method.
|
int |
compoundStackSize(int stackSize)
Computes a compound stack size for the advice and the translated instrumented method.
|
void |
recordMaxima(int stackSize,
int localVariableLength)
Records the maximum values for stack size and local variable array which are required by the advice method
for its individual execution without translation.
|
void |
recordMinimum(int stackSize)
Records a minimum stack size required by the represented advice method.
|
void |
recordPadding(int padding)
Records a minimum padding additionally to the computed stack size that is required for implementing this advice method.
|
String |
toString() |
static Advice.MethodSizeHandler.NoOp |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.MethodSizeHandler.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.MethodSizeHandler.NoOp INSTANCE
public static Advice.MethodSizeHandler.NoOp[] values()
for (Advice.MethodSizeHandler.NoOp c : Advice.MethodSizeHandler.NoOp.values()) System.out.println(c);
public static Advice.MethodSizeHandler.NoOp 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 Advice.MethodSizeHandler.ForAdvice bindEntry(MethodDescription.InDefinedShape adviceMethod)
Advice.MethodSizeHandler
bindEntry
in interface Advice.MethodSizeHandler
adviceMethod
- The method representing the entry advice.public Advice.MethodSizeHandler.ForAdvice bindExit(MethodDescription.InDefinedShape adviceMethod, boolean skipThrowable)
Advice.MethodSizeHandler
bindExit
in interface Advice.MethodSizeHandler
adviceMethod
- The method representing the exit advice.skipThrowable
- true
if the exit advice is not invoked on an exception.public int compoundStackSize(int stackSize)
Advice.MethodSizeHandler
compoundStackSize
in interface Advice.MethodSizeHandler
stackSize
- The required stack size of the instrumented method before translation.public int compoundLocalVariableLength(int localVariableLength)
Advice.MethodSizeHandler
compoundLocalVariableLength
in interface Advice.MethodSizeHandler
localVariableLength
- The required local variable array length of the instrumented method before translation.public void recordMinimum(int stackSize)
Advice.MethodSizeHandler.ForAdvice
recordMinimum
in interface Advice.MethodSizeHandler.ForAdvice
stackSize
- The minimum size required by the represented advice method.public void recordMaxima(int stackSize, int localVariableLength)
Advice.MethodSizeHandler.ForAdvice
recordMaxima
in interface Advice.MethodSizeHandler.ForAdvice
stackSize
- The minimum required stack size.localVariableLength
- The minimum required length of the local variable array.public void recordPadding(int padding)
Advice.MethodSizeHandler.ForAdvice
recordPadding
in interface Advice.MethodSizeHandler.ForAdvice
padding
- The minimum required padding.public String toString()
toString
in class Enum<Advice.MethodSizeHandler.NoOp>
Copyright © 2014–2016. All rights reserved.