protected static class Advice.Dispatcher.Active.CodeTranslationVisitor.ReturnValueDiscarding extends Advice.Dispatcher.Active.CodeTranslationVisitor
Advice.Dispatcher.Active.CodeTranslationVisitor.ReturnValueDiscarding, Advice.Dispatcher.Active.CodeTranslationVisitor.ReturnValueRetaining, Advice.Dispatcher.Active.CodeTranslationVisitor.SuppressionHandleradviseMethod, endOfMethod, instrumentedMethodapi, mv| Modifier | Constructor and Description |
|---|---|
protected |
ReturnValueDiscarding(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape instrumentedMethod,
MethodDescription.InDefinedShape adviseMethod,
Map<Integer,Advice.Dispatcher.Active.Resolved.OffsetMapping.Target> offsetMappings,
TypeDescription throwableType,
StackSize additionalVariableSize)
Creates a new code translation visitor that retains the return value of the enter advise.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
adjust(int offset)
Adjusts the offset of a variable instruction within the advise method such that no arguments to
the instrumented method are overridden.
|
void |
makeDefault(MethodVisitor methodVisitor) |
String |
toString() |
void |
visitInsn(int opcode) |
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitLineNumber, visitMaxs, visitParameter, visitParameterAnnotation, visitTypeAnnotation, visitVarInsnvisitFieldInsn, visitIincInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsnprotected ReturnValueDiscarding(MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod, MethodDescription.InDefinedShape adviseMethod, Map<Integer,Advice.Dispatcher.Active.Resolved.OffsetMapping.Target> offsetMappings, TypeDescription throwableType, StackSize additionalVariableSize)
methodVisitor - A method visitor for writing the instrumented method's byte code.instrumentedMethod - The instrumented method.adviseMethod - The advise method.offsetMappings - A mapping of offsets of the advise methods to their corresponding offsets in the instrumented method.throwableType - A throwable type to be suppressed or NoSuppression if no suppression should be applied.additionalVariableSize - An additional size of the local variable array to consider when writing or reading values.public void visitInsn(int opcode)
visitInsn in class Advice.Dispatcher.Active.CodeTranslationVisitorprotected int adjust(int offset)
Advice.Dispatcher.Active.CodeTranslationVisitoradjust in class Advice.Dispatcher.Active.CodeTranslationVisitoroffset - The original offset.public void makeDefault(MethodVisitor methodVisitor)
Copyright © 2014–2016. All rights reserved.