protected class Advice.MethodSizeHandler.Default.ForAdvice extends Object implements Advice.MethodSizeHandler.ForAdvice
| Modifier | Constructor and Description |
|---|---|
protected |
ForAdvice(MethodDescription.InDefinedShape adviceMethod,
TypeList requiredTypes,
TypeList yieldedTypes)
Creates a new 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 |
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() |
protected ForAdvice(MethodDescription.InDefinedShape adviceMethod, TypeList requiredTypes, TypeList yieldedTypes)
adviceMethod - The advice method.requiredTypes - A list of types required by this advice method.yieldedTypes - A list of types yielded by this advice method.public void recordMinimum(int stackSize)
Advice.MethodSizeHandler.ForAdvicerecordMinimum in interface Advice.MethodSizeHandler.ForAdvicestackSize - The minimum size required by the represented advice method.public void recordMaxima(int stackSize,
int localVariableLength)
Advice.MethodSizeHandler.ForAdvicerecordMaxima in interface Advice.MethodSizeHandler.ForAdvicestackSize - The minimum required stack size.localVariableLength - The minimum required length of the local variable array.public void recordPadding(int padding)
Advice.MethodSizeHandler.ForAdvicerecordPadding in interface Advice.MethodSizeHandler.ForAdvicepadding - The minimum required padding.Copyright © 2014–2016. All rights reserved.