protected class Advice.MetaDataHandler.Default.WithStackSizeComputation.ForAdvice extends Advice.MetaDataHandler.Default.ForAdvice
Advice.MetaDataHandler.Default, Advice.MetaDataHandler.ForAdvice, Advice.MetaDataHandler.ForInstrumentedMethod, Advice.MetaDataHandler.NoOp
methodDescription, requiredTypes, translationMode
Modifier | Constructor and Description |
---|---|
protected |
ForAdvice(MethodDescription.InDefinedShape methodDescription,
TypeList requiredTypes,
TypeList yieldedTypes,
Advice.MetaDataHandler.Default.TranslationMode translationMode)
Creates a new meta data 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 |
recordPadding(int padding)
Records a minimum padding additionally to the computed stack size that is required for implementing this advice method.
|
String |
toString() |
injectCompletionFrame, injectHandlerFrame, translateFrame
protected ForAdvice(MethodDescription.InDefinedShape methodDescription, TypeList requiredTypes, TypeList yieldedTypes, Advice.MetaDataHandler.Default.TranslationMode translationMode)
methodDescription
- The advice method.requiredTypes
- The types that this method expects to exist in addition to the method parameter types.yieldedTypes
- The types yielded by this advice method.translationMode
- The translation mode for this meta data handler.public void recordMaxima(int stackSize, int localVariableLength)
Advice.MetaDataHandler.ForAdvice
stackSize
- The minimum required stack size.localVariableLength
- The minimum required length of the local variable array.public void recordPadding(int padding)
Advice.MetaDataHandler.ForAdvice
padding
- The minimum required padding.Copyright © 2014–2016. All rights reserved.