public static enum Advice.MethodSizeHandler.NoOp extends Enum<Advice.MethodSizeHandler.NoOp> implements Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.ForAdvice
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForAdvice, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOp| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
UNDEFINED_SIZE| Modifier and Type | Method and Description |
|---|---|
Advice.MethodSizeHandler.ForAdvice |
bindEnter(MethodDescription.TypeToken typeToken)
Binds a method size handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
bindExit(MethodDescription.TypeToken typeToken)
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 |
requireLocalVariableLength(int localVariableLength)
Requires a minimum length of the local variable array.
|
void |
requireLocalVariableLengthPadding(int localVariableLengthPadding)
Requires additional padding for the local variable array that is required for this advice's execution.
|
void |
requireStackSize(int stackSize)
Records a minimum stack size required by the represented advice method.
|
void |
requireStackSizePadding(int stackSizePadding)
Requires additional padding for the operand stack that is required for this advice's execution.
|
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 bindEnter(MethodDescription.TypeToken typeToken)
bindEnter in interface Advice.MethodSizeHandler.ForInstrumentedMethodtypeToken - The type token representing the enter advice.public Advice.MethodSizeHandler.ForAdvice bindExit(MethodDescription.TypeToken typeToken)
bindExit in interface Advice.MethodSizeHandler.ForInstrumentedMethodtypeToken - The type token representing the exit advice.public int compoundStackSize(int stackSize)
compoundStackSize in interface Advice.MethodSizeHandler.ForInstrumentedMethodstackSize - The required stack size of the instrumented method before translation.public int compoundLocalVariableLength(int localVariableLength)
compoundLocalVariableLength in interface Advice.MethodSizeHandler.ForInstrumentedMethodlocalVariableLength - The required local variable array length of the instrumented method before translation.public void requireStackSize(int stackSize)
requireStackSize in interface Advice.MethodSizeHandlerstackSize - The minimum size required by the represented advice method.public void requireLocalVariableLength(int localVariableLength)
requireLocalVariableLength in interface Advice.MethodSizeHandlerlocalVariableLength - The minimal required length of the local variable array.public void requireStackSizePadding(int stackSizePadding)
requireStackSizePadding in interface Advice.MethodSizeHandler.ForAdvicestackSizePadding - The required padding.public void requireLocalVariableLengthPadding(int localVariableLengthPadding)
requireLocalVariableLengthPadding in interface Advice.MethodSizeHandler.ForAdvicelocalVariableLengthPadding - The required padding.public void recordMaxima(int stackSize,
int localVariableLength)
recordMaxima in interface Advice.MethodSizeHandler.ForAdvicestackSize - The minimum required stack size.localVariableLength - The minimum required length of the local variable array.Copyright © 2014–2025. All rights reserved.