protected static interface Advice.MethodSizeHandler
Modifier and Type | Interface and Description |
---|---|
static class |
Advice.MethodSizeHandler.Default
A default implementation for a method size handler.
|
static interface |
Advice.MethodSizeHandler.ForAdvice
A method size handler for an advice method.
|
static class |
Advice.MethodSizeHandler.NoOp
A non-operational method size handler.
|
Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED_SIZE
Indicates that a size is not computed but handled directly by ASM.
|
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.
|
static final int UNDEFINED_SIZE
Advice.MethodSizeHandler.ForAdvice bindEntry(MethodDescription.InDefinedShape adviceMethod)
adviceMethod
- The method representing the entry advice.Advice.MethodSizeHandler.ForAdvice bindExit(MethodDescription.InDefinedShape adviceMethod, boolean skipThrowable)
adviceMethod
- The method representing the exit advice.skipThrowable
- true
if the exit advice is not invoked on an exception.int compoundStackSize(int stackSize)
stackSize
- The required stack size of the instrumented method before translation.int compoundLocalVariableLength(int localVariableLength)
localVariableLength
- The required local variable array length of the instrumented method before translation.Copyright © 2014–2016. All rights reserved.