protected class Advice.MethodSizeHandler.Default.ForAdvice extends Object implements Advice.MethodSizeHandler.ForAdvice
Advice.MethodSizeHandler.Default, Advice.MethodSizeHandler.ForAdvice, Advice.MethodSizeHandler.ForInstrumentedMethod, Advice.MethodSizeHandler.NoOpUNDEFINED_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
ForAdvice(MethodDescription.TypeToken typeToken,
int baseLocalVariableLength)
Creates a default method size handler for an advice method.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected ForAdvice(MethodDescription.TypeToken typeToken, int baseLocalVariableLength)
typeToken - The type token representing the advice.baseLocalVariableLength - The base of the local variable length that is implied by the method instrumentation
prior to applying this advice method.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.